[stringtemplate-interest] Attribute iteration

Terence Parr parrt at cs.usfca.edu
Fri May 5 18:06:38 PDT 2006


On May 5, 2006, at 5:48 PM, Glenn Williams wrote:

> I would like to iterate through the attributes in a template  
> putting a comma after every attribute except for the last one. In  
> that case I want to put a period. I've tried the first/rest/last  
> interface but the last attribute is returned with the rest of that  
> attributes from the "rest" call. Is there another approach?

Try

<names; separator=",">.

:)

Ter


More information about the stringtemplate-interest mailing list