> Why can't you call the layout preparation code you want from inside your 
controller methods?
Because I have about 30 controllers and 10-20 methods in each controller. 
It is not suitable to put the same code in each method.

> Or from inside your templates or layouts?
I think it is not good idea to put business logic into template.

-- 
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/groups/opt_out.

Reply via email to