
zzbbyy at gmail
Dec 1, 2005, 4:42 AM
Post #5 of 11
(962 views)
Permalink
|
OK. Here it is. diff -u and tt_additional_include_paths as the parameter. I hope such a long name will save us from name clash. -- Zbyszek On 12/1/05, Matt S Trout <dbix-class [at] trout> wrote: > 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/ + > > _______________________________________________ > Catalyst mailing list > Catalyst [at] lists > http://lists.rawmode.org/mailman/listinfo/catalyst >
|