I'm entirely new to Dart so excuse my ignorance.
Lets say I was trying to model a tree which had frames and paragraphs. A frame could hold paragraphs, and other frames (recursive). (Note: These frames are not iframes, just a box to hold content really.)
Frame
Paragraph
Frame
Paragraph
Paragraph
Frame
Paragraph
Paragraph
...
There is no prescribed structure to these trees. Just wondering how one would use dartUI to display a recursive tree structure with mixed types like this. Can you do it via templating/binding?
Edit: This tree structure is dynamic and changed at run time (i.e. users can add frames and paragraphs). So what I'm looking for is a method to generate the view from this model without the calls back to the server to generate new content structures.
I was thinking maybe the template iterate
could be used to iterate over all the children of a Frame and somehow switch what element is inserted based on whether the child is a paragraph or frame.