Created
August 22, 2010 17:00
-
-
Save yko/543985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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