aboutsummaryrefslogtreecommitdiff
path: root/t/template_syntax.t
blob: e3d1feca9ef3d3791ba7e93cf6bad2faf9abecc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
use warnings;
use strict;
use Test::More;

my @templates=(glob("templates/*.tmpl"), glob("doc/templates/*.mdwn"));
plan(tests => 2*@templates);

use HTML::Template;

foreach my $template (@templates) {
	my $obj=eval {HTML::Template->new(filename => $template)};
	ok(! $@, $template." $@");
	ok($obj, $template);
}