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

plan(skip_all => 'running installed') if $ENV{INSTALLED_TESTS};

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);
}