in reply to Accessing the stash within a TT file
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Accessing the stash within a TT file
by perrin (Chancellor) on Jun 30, 2009 at 15:58 UTC | |
by Anonymous Monk on Jul 01, 2009 at 01:00 UTC | |
by perrin (Chancellor) on Jul 01, 2009 at 04:44 UTC | |
Re^2: Accessing the stash within a TT file
by Your Mother (Archbishop) on Jun 30, 2009 at 16:43 UTC | |
Re^2: Accessing the stash within a TT file
by Anonymous Monk on Jun 30, 2009 at 15:58 UTC |
In Section
Seekers of Perl Wisdom