the documentation is excellent, here is the link for how to stash variables 
or use helpers to render data in templates
http://mojolicio.us/perldoc/Mojolicious/Guides/Rendering

On Wednesday, October 29, 2014 12:19:02 PM UTC+1, Николай Турнавиотов wrote:
>
>
> Hello.
>
> Thanks, but I want to pass variables from controller methods to layaout, 
> or use helpers, such a side menu generation, from layaout
>
> вторник, 28 октября 2014 г., 16:54:47 UTC+2 пользователь mjb152 написал:
>
>> not sure exactly what you mean but you can pass variables to a layout 
>> file like this:-
>>
>> % layout 'mylayoutfile', thisvar => 'true'
>>
>

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