[Catalyst] Context sensitive template locations

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


I forgot to add that you need to copy the test.tt template to
t/lib/TestApp/root/test_include_path/testpath.tt for the tests to run.

-- zby


On 11/26/05, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> 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
>
>


More information about the Catalyst mailing list