On Monday, August 18, 2014 4:14:55 PM UTC-4, Alexey Mishustin wrote:
>
> 2014-08-18 23:29 GMT+04:00 <[email protected] <javascript:>>:
> > Hello.
> >
> > Could you please explain me rules of templates naming?
> >
>
> > $self->render('templates/mycontroller/template1');
>
[...]
> > Template "templates/mycontroller/template1.html.ep" not found.
> > What am I missing?
>
templates are relative to templates/ directory
$self->render('mycontroller/template1');
http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering
note that controller is decamelized (not just lowercase) so if your
controller was MyController the template would be my_controller/template1
jay
--
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.