[Catalyst] dynamic include path for tt

Bill Moseley moseley at hank.org
Fri Nov 4 04:54:17 CET 2005


On Fri, Nov 04, 2005 at 12:18:02PM +1100, Ben Norman wrote:
> Is there another way to provide a dynamic include path for the template 
> toolkit to a catalyst app? I'm not convinced my code is as clean as it 
> could be.

I often just keep the template path array ref around as class data:

    __PACKAGE__->config->{INCLUDE_PATH} = \@template_path;

Then in process (or somewhere that has access to @template_path)
adjust @template_path as needed.

-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list