]> git.decadent.org.uk Git - maypole.git/commitdiff
added post_chomp as default option for TT
authorAaron Trevena <aaron.trevena@gmail.com>
Fri, 18 Apr 2008 09:31:53 +0000 (09:31 +0000)
committerAaron Trevena <aaron.trevena@gmail.com>
Fri, 18 Apr 2008 09:31:53 +0000 (09:31 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@590 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole/View/TT.pm

index a14b80f5c8493413db4099025aabde2395894854..c966a7df262bbefe9e96a3114b50e0514f26a4e9 100644 (file)
@@ -21,6 +21,8 @@ sub template {
     if ($r->debug) {
       $view_options->{DEBUG} = $debug_flags;
     }
+
+    $view_options->{POST_CHOMP} = 1 unless (exists $view_options->{POST_CHOMP});
     $self->{provider} = Template::Provider->new($view_options);
     $self->{tt}       = Template->new({
                                       %$view_options,