From looking at Mojolicious::Guides::Tutorial, it seems that you should ->stash before you ->render. Also, you should be able to pass your parameters directly in your call to ->render:
$c->render(template => 'magic', two => 24);
In reply to Re: Loading values into template using Perl and Mojolicious::Lite
by Corion
in thread Loading values into template using Perl and Mojolicious::Lite
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |