in reply to Re^2: Passing a value to Mojo::Template template
in thread Passing a value to Mojo::Template template
Could I combine all of it into one variable and than pass to "$mt->render_file()"?
I'm not sure I fully understand the question... do you mean something like the following (which works too)? If not, please provide more context, preferably in the form of an SSCCE (see also How do I post a question effectively?).
my %vars = ( data => $data, test => $code, color => 'blue' ); print $mt->render_file( 'myfile.html.ep', \%vars );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Passing a value to Mojo::Template template
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 | |
by davido (Cardinal) on Apr 15, 2021 at 15:33 UTC |