[Catalyst] Context sensitive template locations

Zbigniew Lukasiak zzbbyy at gmail.com
Sat Nov 26 15:32:15 CET 2005


Here is a patch to trunk Catalyst::View::TT.  It works like this:

    $c->stash->{additional_include_paths} = [$c->config->{root} .
'/test_include_path')];

Some description added to the POD.

It adds the additional paths to the configured paths for the duration
of the process method call on the template.  Then it returns the
template INCLUDE_PATH back to the configured state.

I attach also a test for the change and a patch for t/lib/TestApp.pm

-- zby
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TT.diff
Type: text/x-patch
Size: 1643 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051126/e64677a0/TT.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestApp.diff
Type: text/x-patch
Size: 347 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051126/e64677a0/TestApp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06includepath.t
Type: application/x-troff
Size: 520 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051126/e64677a0/06includepath.t


More information about the Catalyst mailing list