On Fri, Jul 25, 2008 at 8:02 AM, James S. White <[EMAIL PROTECTED]> 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.

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to