X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;h=d2da45a59d0b643e4ec4f2c322af717b595140e3;hp=936fcc51fc8fa7668a3a5a29b3a7d8bfb4cedc41;hb=2af3091e4954c080708cb08eb3c72d52416f9ca1;hpb=bd6da5dd49b9a50d49098f97278e4b440cb17bd9 diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 936fcc5..d2da45a 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -8,7 +8,7 @@ use File::Spec::Functions qw(catdir tmpdir); our $error_template; { local $/; $error_template = ; } -our $VERSION = '2.11'; +our $VERSION = '2.12'; use strict; @@ -16,6 +16,9 @@ sub template { my ( $self, $r ) = @_; unless ($self->{tt}) { my $view_options = $r->config->view_options || {}; + if ($r->debug) { + $view_options->{DEBUG} = 'undef'; + } $self->{provider} = Template::Provider->new($view_options); $self->{tt} = Template->new({ %$view_options,