On 9 Nov 2007, at 01:47, Gerda Shank 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.
One slightly more exotic thing I've done is:
in Controller::Root
sub index : Private { my ($self, $c) = @_; $c->res->redirect('/static/
index.html');}
sub ajax_method : Local {
# do stuff for handling ajax calls from the static page above
}
So the answer is whatever you like :-)
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/