[Catalyst] View::TT patches

Zbigniew Lukasiak zzbbyy at gmail.com
Thu Dec 1 13:42:38 CET 2005


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.me.uk> 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.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestApp.diff
Type: text/x-patch
Size: 913 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051201/36763c61/TestApp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TT.diff
Type: text/x-patch
Size: 3102 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051201/36763c61/TT.bin


More information about the Catalyst mailing list