[Catalyst] Setting the COMPILE_DIR for TT templates in the
configuration file
Tomas Doran
bobtfish at bobtfish.net
Sun Jan 22 19:58:24 GMT 2012
On 22 Jan 2012, at 18:54, Robert Rothenberg wrote:
> <View::TT>
> COMPILE_DIR /var/opt/myapp/template_cache
> </View::TT>
>
> where MyApp::View::TT is the name of the view module.
>
> None of them work. How do I do this?
This should work.
http://localhost:3000/?dump_info=1
will dump the config that the app has actually read in and merged
(assuming you've got debug mode on and you're using the standard
RenderView plugin).
Does the config dumped look like you expect? Can you show us?
Are you customising your TT view in any way (i.e. adding extra code
yourself - specifically to the constructor). Do you have a
make_immutable in there? (Can you show us the whole file?)
Cheers
t0m
More information about the Catalyst
mailing list