#!/usr/bin/env perl package Dudelicious; BEGIN { use FindBin; use lib "$FindBin::Bin/mojo/lib" } use Mojolicious::Lite; get '/' => 'index'; get '/:groovy' => sub { my $self = shift; $self->render_text($self->param('groovy'), layout => 'funky'); }; app->start; __DATA__ @@ index.html.ep % layout 'funky'; Yea baby! @@ layouts/funky.html.ep Funky! <%== content %>