[stringtemplate-interest] Syntax problems

Terence Parr parrt at cs.usfca.edu
Mon Aug 20 12:32:40 PDT 2007


On Aug 20, 2007, at 7:02 AM, Johannes Luber wrote:
> My plan was to add an encloseElements parameter to the parameter  
> list of
> CreateContent, but I can't get the template calls work correctly with:
>
> <Elements:{e|<CreateContent(e, "false")>}; separator="\n">

You need arg assignment and matching number of them:

<CreateContent(element=e)>

Ter



More information about the stringtemplate-interest mailing list