[stringtemplate-interest] Iteration

Dustin A. Lambert dustin at biztechetc.com
Tue Aug 4 11:26:55 PDT 2009


I've been studying on how to do this to no avail.... Is is possible to pass
a collection through a renderer?

Dustin Lambert



On Tue, Aug 4, 2009 at 2:22 PM, Terence Parr <parrt at cs.usfca.edu> wrote:

> Hi currently we have no way to chop up a list but it's not against the
> rules, so to speak.
> T
>
> On Aug 4, 2009, at 4:22 AM, Dustin A. Lambert wrote:
>
>  Greetings again,
>>
>> I've been testing for about a week now and had a question about iteration:
>>
>> Is it against the StringTemplate philosophy to only show a segment of a
>> list (i.e. first 20 items or last 20 items in a list)?
>>
>> OR should the controller segment the list before it is passed it?
>>
>> I wanted my template designers to decide how many items to display, but
>> could not figure out how I would accomplish this / if it was the proper way.
>>
>> I'm not looking for a hack via a renderer, etc.
>>
>> Thanks again,
>>
>> Dustin Lambert
>> _______________________________________________
>> 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/20090804/4ce84717/attachment.html 


More information about the stringtemplate-interest mailing list