[Catalyst] pass array to template?
Sarah Berry
berry.sarah at gmail.com
Wed Jun 28 21:53:09 CEST 2006
On 6/28/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> Sarah Berry wrote:
> > How can I pass an array to Template Toolkit, then loop through it? I'm
> > trying to pass it through the stash just like anything else, as
> > follows:
> >
> > $c->stash->{numarray} = @numtextCaps;
> >
>
> $c->stash->{numarray} = \@numtextCaps;
>
> As we said on the DBIC list, read perldoc perlreftut and perlref for full
> info
> about how all this works.
Thanks, that was my problem. Guess I missed that part ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060628/97294dd7/attachment.htm
More information about the Catalyst
mailing list