I am seeing the following:
I have an object we will call 'object' with an accessor method
'list_things'
list_things returns and array of hashrefs (1 or more)
my template does the following
[% FOREACH thing IN object.list_things() %]
The name of the thing is [% thing.name %]
[% END %]
If the function returns
return [ { name => 'test' } ];
I get not output and dumping the result of the function yields $VAR1
= { name => 'test' } instead of the expected $VAR1 = [ { name =>
'test' } ]
If the function returns
return [ { name => 'test' }, { name => 'test2' } ];
I get two lines of output
The name of the thing is test
The name of the thing is test2
Anybody know how to change this behavior or can point me to a line of
code in the source that causes this (perlxs and pm if possible)
Thanks much
rb
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates