[Catalyst-dev] Re: [RFC] Template and Static directory locations

Ash Berlin ash at cpan.org
Tue Oct 24 09:42:57 GMT 2006


A. Pagaltzis wrote:
> * Jonathan Rockway <jon at jrock.us> [2006-10-23 22:00]:
>>> One question is whether it makes sense to have such
>>> a directory at all. Rails has this which lets you put in
>>> a .fcgi script along with images, css, js, etc.
>> So it looks like:
>>
>> root/
>> root/templates
>> root/static
>> root/static/index.fcgi -> ../../../script/myapp_fastcgi.pl
>> root/static/.htaccess
>>
>> and the .htaccess tells the webserver to handle requests for
>> / with index.fcgi and /static /root/static?  Sounds good to me,
>> if that's possible.  I assume .htaccess is webserver dependent,
>> though, which I dislike.
> 
> Is the `root` parent really necessary? Proliferation of
> equivalent directories is not an issue here, so I’d prefer to
> keep the structure flat. Is there a good reason not to?
> 

My vote would goo for removing root as well




More information about the Catalyst-dev mailing list