Remove version.tt from PROCESS, does not work. :(
--- a/bin/once Mon Jan 04 11:27:08 2016 +0100
+++ b/bin/once Mon Jan 04 12:08:43 2016 +0100
@@ -68,6 +68,7 @@
my $rxFILE = qr/[a-z\d]{6}-[a-z\d]+-[dme]/i; # date-filehash-removalmode
my %TT_CONFIG = (
+# PROCESS => 'version.tt',
INCLUDE_PATH =>
[ (map { catfile($Bin, $_) } qw(templates templates.default) ),
#(map { catfile(dist_dir($DIST), $_) } qw(var templates.override templates)),
@@ -222,9 +223,9 @@
}
}
- $tt->process('inventory.html', \%tt) or die sprintf "template: %s\nINCLUDE_PATH\n%s\n",
- $tt->error(),
- join "\n", @{$TT_CONFIG{INCLUDE_PATH}};
+ $tt->process('inventory.html', \%tt) or
+ die sprintf "template: %s\nINCLUDE_PATH:\n%s\n", $tt->error(),
+ join "\n", map { "'$_'" } @{$TT_CONFIG{INCLUDE_PATH}};
return 0;
}
--- a/templates/README Mon Jan 04 11:27:08 2016 +0100
+++ b/templates/README Mon Jan 04 12:08:43 2016 +0100
@@ -1,2 +1,5 @@
Do not overwrite the files here. If you want to modify something,
-put your versions to ../template.override/
+put your versions to "templates" in your lib directory.
+
+ /usr/local/lib/once/templates/ for your modifications
+ /usr/local/lib/once/templates.default for default templates
--- a/templates/once.tt Mon Jan 04 11:27:08 2016 +0100
+++ b/templates/once.tt Mon Jan 04 12:08:43 2016 +0100
@@ -3,7 +3,6 @@
<html>
[%-
USE date;
- PROCESS version.tt;
-%]
<head>
<title>Once</title>