in reply to Passing a value to Mojo::Template template
The data for the variables should be in a single hash. $mt->render_file('myfile.html.ep', { data => $data, test => $code } ) works for me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a value to Mojo::Template template
by Anonymous Monk on Apr 14, 2021 at 17:07 UTC | |
by haukex (Archbishop) on Apr 14, 2021 at 17:10 UTC | |
by Anonymous Monk on Apr 14, 2021 at 17:25 UTC | |
by choroba (Cardinal) on Apr 14, 2021 at 20:09 UTC | |
by Anonymous Monk on Apr 14, 2021 at 18:20 UTC | |
by perlfan (Parson) on Apr 15, 2021 at 00:44 UTC | |
|