[Catalyst] dynamic include path for tt

Ben Norman ben.norman at qmunity.net
Fri Nov 4 06:16:13 CET 2005


Does that mean I dont need the new sub in the TT component anymore?
Can you post an example?


Bill Moseley wrote:

>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.
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051104/f5427ecf/attachment.htm


More information about the Catalyst mailing list