Created
February 17, 2011 07:10
-
-
Save tomill/831204 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
use Text::Xslate qw/html_builder/; | |
use Text::Markdown; | |
my $template = Text::Xslate->new( | |
syntax => 'TTerse', | |
function => { | |
markdown => html_builder { | |
Text::Markdown::markdown(shift); | |
}, | |
}, | |
); |
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
[% FILTER markdown %] | |
[% INCLUDE 'readme.md' %] | |
[% END %] | |
or | |
[% diary.text | markdown %] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment