[Catalyst] Using a post argument in a template

J. Shirley jshirley at gmail.com
Fri Jul 25 16:25:05 BST 2008


On Fri, Jul 25, 2008 at 8:02 AM, James S. White <james at jameswhite.org> wrote:
> nevermind. this works. I am an idiot. It helps if the array isn't empty...
>
> On Fri, 25 Jul 2008, James S. White wrote:
>
>> I can stash and array and when I use [% c.stash.mylist %] in the template,
>> it prints 'ARRAY(0x94023b0)' but if I try:
>>
>> [% FOREACH element IN c.stash.mylist %]
>> [% element %]
>> [% END %]
>>
>> the output is null. I'm sure I'm missing something here, I just don't know what.
>>

You also don't need to use the "c.stash" prefix, [% mylist %] should
work for you.



More information about the Catalyst mailing list