Help for this page

Select Code to Download


  1. or download this
    include_dir: /home/trizor/site/templates
    post_template: post.tt
    
  2. 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);
    
  3. or download this
    post_template: !!perl/ref
      =: |
        [% var1 %]
        # Formatting funness!
        [% var2 %]