my $code_body = $self->_compile_chunk( '', "${$tmpl_ref}", "\t" ) ;
- $self->{source} = <<CODE ;
+ my $source = <<CODE ;
no warnings ;
}
CODE
- $self->{source_cache}{$template_name} = $self->{source} ;
- print $self->{source} ;
+#print $source ;
- my $code_ref = eval $self->{source} ;
+ my $code_ref = eval $source ;
die $@ if $@ ;
$self->{compiled_cache}{$template_name} = $code_ref ;
+ $self->{source_cache}{$template_name} = $source ;
+}
+
+sub get_source {
+
+ my( $self, $template_name ) = @_ ;
+
+ return $self->{source_cache}{$template_name} ;
}