Hello.

Could you please explain me rules of templates naming?

I have a template:

$ file templates/mycontroller/template1.html.ep 
templates/mycontroller/template1.html.ep: HTML document, ASCII text

and a controller:

$ file lib/MyApp/Controller/Mycontroller.pm 
lib/MyApp/Controller/Mycontroller.pm: Perl5 module source, ASCII text

Inside Mycontroller.pm there is the sub "template1" where I wrote: 
$self->render('templates/mycontroller/template1');

And I get:
Template "template1.html.ep" not found.

Then I write:
$self->render('template1');

And I get again:
Template "template1.html.ep" not found.

I tried to rename the directory templates/mycontroller to 
templates/Mycontroller, it didn't help.

What am I missing?

--
Regards,
Alex

-- 
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