use Mojolicious::Lite; get '/mipagina'; app->start; __DATA__ @@ mipagina.html.ep % title 'Green'; % layout 'green'; Hello World! @@ layouts/green.html.ep <%= title %> <%= content %>