Skip to content

Instantly share code, notes, and snippets.

@rjp
Created January 26, 2011 17:42
Show Gist options
  • Save rjp/797089 to your computer and use it in GitHub Desktop.
Save rjp/797089 to your computer and use it in GitHub Desktop.
use Template;
use Template::Parser;
my $p = Template::Parser->new();
my $tt = join('', <DATA>);
print $p->parse($tt) ? "OK" : "NOT OK";
__DATA__
[% INCLUDE monkeys %]
<ul>
[% FOR flange IN flanges %]
<li> [% flange.monkey %]
[% END %]
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment