]> git.decadent.org.uk Git - maypole.git/commitdiff
M::V::TT doesn't set COMPILE_DIR by default since failures aren't currently handled...
authorSimon Cozens <simon@simon-cozens.org>
Wed, 22 Dec 2004 20:05:05 +0000 (20:05 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 22 Dec 2004 20:05:05 +0000 (20:05 +0000)
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

lib/Maypole/View/TT.pm

index 40fa5651dcc9480db76f856e5f1a0a40e8aeb44b..f012cbfb71b738ad213d39ed907fb8282b5cf16f 100644 (file)
@@ -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} ],
         });