#!/usr/bin/env perl use Mojolicious::Lite; plugin 'HTMLTemplateProRenderer'; # Render template in "templates/index.tmpl" get '/test' => sub { my $c = shift; $c->render(template => 'index'); #$c->render('index'); # fill in some parameters $c->param(HOME => $ENV{HOME}); $c->param(PATH => $ENV{PATH}); }; app->start;