diff -ruN old/Base.pm new/Base.pm --- old/Base.pm 2011-05-04 09:06:57.000000000 -0700 +++ new/Base.pm 2012-05-12 02:55:35.171875000 -0700 @@ -95,11 +95,14 @@ debug "Processing template $tmpl\n"; my $out; + my %dconf = $me->tt_config; # Hook for sub-classes to add config + $dconf{INCLUDE_PATH} = [ $dconf{INCLUDE_PATH} ] if not ref $dconf{INCLUDE_PATH} my $tt = Template->new( #DEBUG => $me->translator->debug, + #DEBUG => Template::Constants::DEBUG_ALL(), ABSOLUTE => 1, # Set so we can use from the command line sensibly - RELATIVE => 1, # Maybe the cmd line code should set it! Security! - $me->tt_config, # Hook for sub-classes to add config +# RELATIVE => 1, # Maybe the cmd line code should set it! Security! + %dconf, %args, # Allow any TT opts to be passed in the producer_args ) || die "Failed to initialize Template object: ".Template->error; @@ -107,7 +110,7 @@ $me->tt_default_vars, $me->tt_vars, # Sub-class hook for adding vars }, \$out ) - or die "Error processing template '$tmpl': ".$tt->error; + or die "Error processing template '$tmpl': ".$tt->error ; return $out; }