Subject: | makevar() should also, alternatively, accept an array ref (i.e. for easier use in TT) |
$locale->makevar(@mystuff) is gard to do in TT since everything is a ref:
[% locale.makevar(mytstuff) %] is hard to do in TT:
+ [%- SET item_list = [] -%]
+ [%- FOREACH i IN item.stuff; item_list.push(i.json); END -%]
+ [% '\[% locale.makevar(' _ item_list.join(", ") _ ') %\]' | evaltt %]