-
-
Save yko/525667 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__ | |
@@ index.html.ep | |
<div style='border: 5px solid red;'> | |
%== include "xxx"; | |
</div> | |
Yea baby! | |
@@ xxx.html.ep | |
Tis should be wrapper into red border! | |
<div style='border: 5px solid green;'> | |
%== include "yyy"; | |
</div> | |
@@ yyy.html.ep | |
Tis should be wrapper into green border! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment