[Catalyst] Directory layout

Jonas Alves jonas.alves at gmail.com
Thu Nov 8 15:21:44 GMT 2007

On 11/8/07, Gerda Shank <gs364 at cornell.edu> wrote:
> Thanks for the responses to my question about the View Directory. I'm
> still trying to figure out the reasons for the rest of the directory layout.
> The templates are not in the View directory, because the "lib" hierarchy
> is just for Perl code. Is that right?
> Is "root" kind of the equivalent of "htdocs"?  What else would go in the
> "static" subdirectory besides images? Would you put css files in here?
> Does javascript go in static, or does it get a directory underneath root?
> Are any parts of the layout created by "catalyst.pl" changeable, or
> would it break Catalyst to rename them? If, for example, "root" was
> changed to "htdocs", or you didn't use the "static" directory?
> Sorry for all the questions. I've been studying the documentation, but
> haven't had much like finding explanations for these things, and I'm not
> sure where to look in the code.
> Thanks,
> Gerda Shank

I put all my static files under static. Usually I have a directory
structure like this:



More information about the Catalyst mailing list