in reply to Loading values into template using Perl and Mojolicious::Lite
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Loading values into template using Perl and Mojolicious::Lite
by Anonymous Monk on Mar 31, 2017 at 18:30 UTC | |
by Corion (Patriarch) on Mar 31, 2017 at 18:32 UTC | |
by Anonymous Monk on Mar 31, 2017 at 18:52 UTC | |
by Corion (Patriarch) on Mar 31, 2017 at 19:07 UTC | |
by Anonymous Monk on Mar 31, 2017 at 19:14 UTC |