# HG changeset patch # User Heiko Schlittermann # Date 1451905723 -3600 # Node ID 171328219fef8c919374a2ce8fe5901a709f0c6c # Parent 06e0bf90ffec203769a7e20182eeeef88ee06fd1 Remove version.tt from PROCESS, does not work. :( diff -r 06e0bf90ffec -r 171328219fef bin/once --- 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; } diff -r 06e0bf90ffec -r 171328219fef templates/README --- 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 diff -r 06e0bf90ffec -r 171328219fef templates/once.tt --- 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 @@ [%- USE date; - PROCESS version.tt; -%] Once