not sure exactly what you mean but you can pass variables to a layout file like this:-
% layout 'mylayoutfile', thisvar => 'true'; On Sunday, October 26, 2014 10:56:08 AM UTC+1, Николай Турнавиотов wrote: > > Now I write my own Wordpress clone for a studying perl, mojo and > postgresql. I have some experience in C# Asp.Net MVC. > One of asp.net mvc features is calling of methods, or passing variables > to layout file. > As example - in my asp. project I have a this helpers: > 1 - generate top nav bar (list for menu items generated by .net > reflections) > 2 - generate side menus. > > Now this 'helpers' I must use in my page code, not in layout file. How to > fix this and move this code to layout? > -- 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.
