- or download this
include_dir: /home/trizor/site/templates
post_template: post.tt
- or download this
use Template;
use YAML::Syck qw(LoadFile);
...
my $tt = Template->new() # Other config parts are irrelevant
$tt->process($config->{post_template},\%vars);
- or download this
post_template: !!perl/ref
=: |
[% var1 %]
# Formatting funness!
[% var2 %]