[stringtemplate-interest] quick question

David Moshal dmoshal at gmail.com
Wed May 10 12:56:23 PDT 2006


Kay - I'm not sure if I explained the problem - I want to create a fixed
number of rows, eg 3.
There is no model in this case.

BTW - thanks for the Ter's i18n article - I'm going to look into the
attribute renderer class, it
clearly is a superior way of solving my prior problem regarding formatting.
Do you know if
one can set an attribute renderer as a wrapper around a whole model object?

Dave



On 5/10/06, Kay Roepke <kroepke at dolphin-services.de> wrote:
>
>
> On 10. May 2006, at 19:55 Uhr, David Moshal wrote:
>
> > Hi - I apologize in advance if this is a completely obvious question:
> >
> > How does one iterate in ST?
> >
> > ie, If I want to create a table with, say 10 rows, how is this done:
>
> (using the AngleBracketTemplateLexer:)
>
> <rows:{row|\<tr><row.datacells:{data|\<td>data.contents\</td>}>\</
> tr>}; separator="\n">
>
> See: http://www.stringtemplate.org/doc/doc.tml
>
> HTH,
>
> -k
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20060510/e32ddaa3/attachment.html


More information about the stringtemplate-interest mailing list