[Catalyst] Where to put template files?

Marcello Romani mromani at ottotecnica.com
Thu Jun 8 08:38:48 CEST 2006


Kieren Diment ha scritto:
> It's a good idea to change the subject of your mail, so that it doesn't 
> get burried if you're reading the digest.  I don't know the answer to 
> your question, but I'm reposting with a sensible subject for you instead
> 
> On 08/06/06, *Dr. Jennifer Nussbaum* <bg271828 at yahoo.com 
> <mailto:bg271828 at yahoo.com>> wrote:
> 
> 
> 
>         You can do something like:
> 
> 
>         SetHandler perl-script
>         PerlResponseHandler MyApp
> 
>         Alias /myapp/static /path/to/myapp/root/static
> 
>         Order allow,deny
>         Allow from all
> 
>         SetHandler default-handler
> 
>     Thank you!!!
> 
>     But one question--where do my templates go? Right now their under,
>     lets say, /path/to/myapp/root/. And i dont want to change anything
>     in MyApp.pm so i can
>     keep running it with the builtin testing server.

If everything is working fine under the test server, then it should Just 
Work (tm) under apache. Templates don't have to be moved.

> 
>     The docs for Catalyst::View::TT talk about adding locations for the
>     template root but they dont really say what the default location is.
>     (It shows about havng MyApp->config({root =>
>     MyApp->path_to('root')}) but right now i don't have that and things
>     work fine with the test server.) Where should i put it all?
> 
>     Jen.
> 
>     __________________________________________________
>     Do You Yahoo!?
>     Tired of spam? Yahoo! Mail has the best spam protection around
>     http://mail.yahoo.com
> 
> 
>     _______________________________________________
>     Catalyst mailing list
>     Catalyst at lists.rawmode.org <mailto:Catalyst at lists.rawmode.org>
>     http://lists.rawmode.org/mailman/listinfo/catalyst
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst


-- 
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com



More information about the Catalyst mailing list