[Catalyst] Where to place HTML::Template templates?

Andy Grundman andy at hybridized.org
Mon Nov 14 04:39:08 CET 2005


Maxim Nechaev wrote:
> Problem. If i understand, by default *.tmpl files searched in
> MyApp/root directory. But it is not good, because anybody can view
> this template by typing "http://localhost:3000/start.tmpl" in browser.

Right, by default Static::Simple currently ignores the following extensions:
html
xhtml
tt
tt2

I will add tmpl for a future release.  But for now you can do this to 
secure your files:

MyApp->config->{static}->{ignore_extensions} = [ qw/tmpl/ ];

-Andy



More information about the Catalyst mailing list