[stringtemplate-interest] nested attributes

David Moshal dmoshal at gmail.com
Mon Mar 20 15:57:18 PST 2006


Hi, I have a data structure as follows:

public class Section
{
     Vector <Group> groups;
}

public class Group
{
     String name;
}

I'd like my template to be able to show sections and groups:

setAttribute ("sections", sections); // sections is a collection of sections

and in the template:


$sections:

     $it.groups:

          $it.name$
     $
$

Any ideas??

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20060320/5ab7c1ab/attachment.html


More information about the stringtemplate-interest mailing list