[Catalyst] View::TT patches

Matt S Trout dbix-class at trout.me.uk
Thu Dec 1 02:57:37 CET 2005


On Wed, Nov 30, 2005 at 11:16:11PM +0100, Zbigniew Lukasiak wrote:
> Hi,
> 
> Sometimes you need to set additional search paths dynamically (from
> the controllers).  With this patch you can just put the paths on stash
> and they will be added to the list used by the View, after processing
> the search paths list is restored back, so that subsequent requests
> will not change the search path for each other.
> 
> I needed that to set the search path to a library of templates I want
> to bundle together with a controller.

Diff looks pretty good, could I have it as a diff -u or svn diff or similar
please?
 
> You can use it like that:
> 
> $c->stash->{additional_include_paths} = [$c->config->{root} .
> '/test_include_path'];

Do people think there's enough chance of a namespace collision to include
an option to turn this off? I'm voting for "no" myself :)

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list