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

Jules Bean jules at jellybean.co.uk
Mon Nov 14 12:08:02 CET 2005


Andy Grundman wrote:
> 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 would repeat my request that the various Template plugins and 
Static::Simple should not look in the same directory by default.

Excluding based on file suffixes is not a robust or elegant solution in 
my opinion.

Jules



More information about the Catalyst mailing list