|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Accessing the stash within a TT fileby ikegami (Pope) |
| on Jun 30, 2009 at 15:45 UTC ( #776070=note: print w/ replies, xml ) | Need Help?? |
|
I presume you are talking about Catalyst's stash. TT doesn't know anything about Catalyst. Fortunately, Catalyst::View::TT passes the Catalyst object to TT as a variable (under the name Catalyst by default). You should be able to do [% Catalyst.stash.foo %] I'm just learning Catalyst now, so let me know if that doesn't work.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||