[stringtemplate-interest] conditional separator

Terence Parr parrt at cs.usfca.edu
Tue Aug 1 11:45:31 PDT 2006


On Jul 31, 2006, at 12:15 PM, John RW wrote:

> Hi
>
> I have a multivalue attribute, and want to concatenate the values  
> with a comma separator, only if the value itself has an attribute  
> "foo" equals true. Is it possible to do this in stringtemplate?

Hi :)

Nope.  That is processing/filtering and should be done by your  
model.  Pass what you want displayed only to the template. :)

Ter


More information about the stringtemplate-interest mailing list