Template2 icon indicating copy to clipboard operation
Template2 copied to clipboard

[rt.cpan.org #60640]

Open atoomic opened this issue 7 years ago • 1 comments
trafficstars

Migrated from rt.cpan.org#60640 (status was 'new')

Requestors:

From [email protected] on 2010-08-23 15:20:31:

TT does not save compiled on-fly templates to disk (only saves firs- time compiled)

and second line - for help hacking via redefining functions for bases, preprocessing,..

Provider.pm__o  Provider.pm 
--- Provider.pm__o      2010-08-20 19:33:04.000000000 +0400
+++ Provider.pm 2010-08-23 19:13:36.000000000 +0400
@@ -687,7 +687,7 @@
                 if $self->{ DEBUG };
 
             ($data, $error) = $self->_load($slot->[ NAME ], $slot->
[ DATA ]->{ name });
-            ($data, $error) = $self->_compile($data)
+            ($data, $error) = $self->_compile($data, $self->_compiled_filename($slot->[ NAME ]))
                 unless $error;
 
             if ($error) {
@@ -965,7 +965,7 @@
         local $/;
         binmode(FH);
         $data = <FH>;
-        $mod_date = (stat($path))[9];
+        $mod_date = $self->_template_modified($path);
         close(FH);
     }
     else {

atoomic avatar Oct 05 '18 16:10 atoomic

I'm very unclear what this patch does. The contributor wasn't clear and I didn't stare at it enough to be sure what it does.

toddr avatar Oct 08 '18 23:10 toddr