[stringtemplate-interest] ST 3.2 question, passing params through iteration
Monty Zukowski
monty at codetransform.com
Wed May 2 14:41:02 PDT 2012
I've got a list called outputs, and I want to have the outputMethod()
applied to it, but I have another attribute from the enclosing
template I would like to pass to each invocation of outputMethod.
The template to call is like this:
outputMethod(var, parentName)::=<<
...
>>
I'm trying to invoke it over the outputs list:
$outputs:{it | $outputMethod(it, parentName)$};separator="\n"$
or
$outputs, parentName:{it | $outputMethod(it, parentName)$};separator="\n">
I can't figure out the correct syntax for this. I've tried a number
of different things. Any ideas?
Thanks,
Monty
More information about the stringtemplate-interest
mailing list