[Catalyst] context in ::V::TT::new()
Todd Holbrook
paradawks at gmail.com
Mon Jul 18 23:55:25 CEST 2005
I needed similar functionality - changing INCLUDE_PATH based on part
of the URL. I ended up copying the Catalyst::View::TT code into a
view for the application and moved the bulk of the new() code into
process() where the context is available. It's less efficient,
obviously, but it's working for me. I haven't profiled it yet to see
what the impact is.
Todd
On 7/18/05, Michael Richards <mdrichards at gmail.com> wrote:
> Hello,
>
> I'm overriding the new subroutine in a Template Toolkit as
> described in Tutorial.pod in the "Hooking in to Template Toolkit"
> section. Is it possible to access the context object from here? I'd
> like to get to the stash to figure out which wrapper template to use
> but it doesn't see that the context object exists here. Any tips or
> pointers would be greatly appreciated.
>
> Thank you,
> Michael
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
--
Todd
--
Todd Holbrook
Systems Consultant
Simon Fraser University
More information about the Catalyst
mailing list