Skip to content

Instantly share code, notes, and snippets.

@yko
Created August 22, 2010 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yko/543985 to your computer and use it in GitHub Desktop.
Save yko/543985 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/' => 'index';
app->start;
__DATA__
@@ block.html.ep
% layout 'funky';
<div id='wrapper'>
%== content;
</div>
@@ index.html.ep
% extends 'block';
Yea baby!
@@ layouts/funky.html.ep
<!doctype html><html>
<head><title>Funky!</title></head>
<body>
<%== content %>
</body>
</html>
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment