summaryrefslogtreecommitdiff
path: root/t/template_syntax.t
blob: 1e156eed897890f1e856eb25606ba8057f169975 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More;
  5. my @templates=glob("templates/*.tmpl"), glob("doc/templates/*.mdwn");
  6. plan(tests => 2*@templates);
  7. use HTML::Template;
  8. foreach my $template (@templates) {
  9. my $obj=eval {HTML::Template->new(filename => $template)};
  10. ok(! $@, $template." $@");
  11. ok($obj, $template);
  12. }