t/900_bugs/issue79/xslate.pl
raw| 1 | #!/usr/bin/env perl |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | |
| 5 | use Text::Xslate; |
| 6 | use FindBin qw($Bin); |
| 7 | |
| 8 | my $xslate = Text::Xslate->new({ |
| 9 | syntax => 'TTerse', |
| 10 | path => "$Bin/tmpl", |
| 11 | cache_dir => "$Bin/cache", |
| 12 | }); |
| 13 | |
| 14 | my @tmpls = qw/ contentA.tt contentB.tt /; |
| 15 | for my $tmpl (@tmpls) { |
| 16 | print "\@\@$tmpl\n"; |
| 17 | print $xslate->render($tmpl); |
| 18 | } |