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 and .