[stringtemplate-interest] ST 3.2 question, passing params through iteration
Monty Zukowski
monty at codetransform.com
Wed May 2 14:52:00 PDT 2012
I know I can kinda do this via
StringTemplate.setPassThroughAttributes(true), but I was trying to
avoid that.
Thanks,
Monty
On Wed, May 2, 2012 at 2:41 PM, Monty Zukowski <monty at codetransform.com> wrote:
> 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