Is there a way to specify a dynamic list of wrappers for the WRAPPER
directive?

In the config, I can do WRAPPER => ['wrapper/outer.tt2',
'wrapper/inner.tt2'], but passing a list to the WRAPPER directive does not
work.

[% wrapper = ['wrapper/outer.tt2', 'wrapper/inner.tt2']
[% content WRAPPER $wrapper %]

results in:

OUTER {
CONTENT
}
INNER {
CONTENT
}


According to the docs, the way to specify multiple wrappers to the WRAPPER
directive is with a +:

[% content WRAPPER wrapper/outer.tt2+wrapper/inner.tt2 %]


But how can I do that when the list of wrappers is dynamic?

thanks
Ronald
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to