#!/usr/bin/env perl use Mojolicious::Lite; plugin 'HTMLTemplateProRenderer'; # Route leading to an action that renders a template get '/test' => sub { my $c = shift; $c->stash( one => 'This is result one' ); $c->render( template => 'display/index', two => 'this is the second', handler => 'tmpl' ); }; app->start;