--- lib/Catalyst/View/TT.pm 2006-04-26 16:30:47.000000000 +0200 +++ lib/Catalyst/View/TT.pm 2006-05-29 16:49:08.000000000 +0200 @@ -378,10 +378,12 @@ sub new { my $copy = $self; Scalar::Util::weaken($copy); $config->{INCLUDE_PATH} = [ sub { $copy->paths } ]; + + my $template_class = $config->{template_class} || 'Template'; $self->{template} = - Template->new($config) || do { - my $error = Template->error(); + $template_class->new($config) || do { + my $error = $template_class->error(); $c->log->error($error); $c->error($error); return undef;