http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering

States:

All templates should be in the templates directories of the application or the 
DATA section of the class main.


Jonathan Otsuka

> On Mar 13, 2014, at 10:12 AM, Neil Watson <[email protected]> wrote:
> 
> Hello,
> 
> Suppose this tree:
> 
> app/app.pl
> app/templates
> 
> An code like this in app.pl
> get '/' => 'home';
> 
> Works fine. How does morbo figure out where to find the home template?
> If move app.pl to app/script/app.pl an restart morbo with
> morbo -l ... script/app.pl
> then '/' does not load home with the message Template "home.html.ep"
> not found.
> 
> -- 
> Neil Watson
> Linux/UNIX Consultant
> http://watson-wilson.ca
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to