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

Terence Parr parrt at cs.usfca.edu
Wed Jun 24 11:21:47 PDT 2009


there is an exact solution to this problem in the enforcing model-view  
separation paper.
T
On Jun 24, 2009, at 11:17 AM, Thomas Gagne wrote:

> 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?
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest

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


More information about the stringtemplate-interest mailing list