[Catalyst] Setting the COMPILE_DIR for TT templates in the
configuration file
Robert Rothenberg
robrwo at gmail.com
Sun Jan 22 18:54:30 GMT 2012
I would like to set the COMPILE_DIR for TT templates in the configuration
file, rather than hardcode it in the MyApp::View::TT file. I have tried the
following:
compile_dir /var/opt/myapp/template_cache
COMPILE_DIR /var/opt/myapp/template_cache
<View::TT>
compile_dir /var/opt/myapp/template_cache
</View::TT>
<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?
More information about the Catalyst
mailing list