The data for the variables should be in a single hash. $mt->render_file('myfile.html.ep', { data => $data, test => $code } ) works for me.
In reply to Re: Passing a value to Mojo::Template template
by haukex
in thread Passing a value to Mojo::Template template
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |