use Mojolicious::Lite; plugin 'HTMLTemplateProRenderer'; # Route leading to an action that renders a template get '/' => sub { my $c = shift; $c->stash(one => 23); $c->render(template => 'home', two => 24, handler => 'tmpl'); }; app->start; __DATA__ @@ home.html.tmpl The magic numbers are <tmpl_var one> and <tmpl_var two>.
In reply to Re^5: HTML::Template Plugin
by Anonymous Monk
in thread HTML::Template Plugin
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |