[stringtemplate-interest] I was expecting to see a mechanism for looping or repeating...

Thomas Gagne tggagne at gmail.com
Wed Jun 24 11:17:23 PDT 2009


Perhaps I'm unsure if I'm seeing it but not understanding it.

 

I want to generate an HTML table.  I'll know ahead of time what its width
will be, but not how many rows there'll be.

 

<table>

<tr><td>description</td><td>Amount</td></tr>

<tr><td>$description$</td><td>$amount</td></tr>

</table>

 

The third row I will want to repeat for each data row I retrieve.  Does
StringTemplate have a way of doing this or have I misestimated its practical
applications?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090624/5d10d3d0/attachment.html 


More information about the stringtemplate-interest mailing list