From: Simon Cozens Date: Wed, 22 Dec 2004 20:05:05 +0000 (+0000) Subject: M::V::TT doesn't set COMPILE_DIR by default since failures aren't currently handled... X-Git-Tag: 2.10~43 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5c0dc9d3fea7db57178e06139d681f5fc115d00c;p=maypole.git M::V::TT doesn't set COMPILE_DIR by default since failures aren't currently handled gracefully. See: http://www.template-toolkit.org/pipermail/templates/2004-December/006983.html git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@321 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 40fa565..f012cbf 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -12,14 +12,8 @@ sub template { unless ($self->{tt}) { my $view_options = $r->config->view_options || {}; - (my $driver_name = ref $r) =~ s/::/_/g; - my $compile_dir = catdir(tmpdir(), $driver_name); - $self->{provider} = Template::Provider->new( - COMPILE_DIR => $compile_dir, - %$view_options, - ); + $self->{provider} = Template::Provider->new($view_options); $self->{tt} = Template->new({ - COMPILE_DIR => $compile_dir, %$view_options, LOAD_TEMPLATES => [ $self->{provider} ], });