# HG changeset patch # User Heiko Schlittermann # Date 1451902707 -3600 # Node ID 3ee9d9b5724ceed90b3802abf487b3344d6a437e # Parent cc818568a7ec3659e471303a9cdb0d681de823c4 Change template directory layout (static instead of public) diff -r cc818568a7ec -r 3ee9d9b5724c bin/once --- a/bin/once Thu Dec 31 19:01:39 2015 +0100 +++ b/bin/once Mon Jan 04 11:18:27 2016 +0100 @@ -69,9 +69,9 @@ my %TT_CONFIG = ( INCLUDE_PATH => - [ (map { catfile($Bin, $_) } qw(templates templates.default templates.var) ), + [ (map { catfile($Bin, $_) } qw(templates templates.default) ), #(map { catfile(dist_dir($DIST), $_) } qw(var templates.override templates)), - (map { catfile($RealBin, $_) } qw(templates.var templates)), + (map { catfile($RealBin, $_) } qw(templates)), ] ); diff -r cc818568a7ec -r 3ee9d9b5724c configs/apache.conf --- a/configs/apache.conf Thu Dec 31 19:01:39 2015 +0100 +++ b/configs/apache.conf Mon Jan 04 11:18:27 2016 +0100 @@ -10,26 +10,26 @@ # This directory needs to be r/w by the web server user # (wwwrun, www-data, who ever), but it must not be # accessible via HTTP(s) - + Require all denied Action once-handler /once-handler/once.cgi virtual ScriptAlias /once-handler/ $lib/ - Alias $location/public $lib/public + Alias $location/static $lib/static # Order of location blocks matters! # We handle requests to our script, with the exception (see below) - # for …/public/… requests. These should be answered from a simple + # for …/static/… requests. These should be answered from a simple # static directory for style sheets and similiar SetHandler once-handler - + SetHandler none - + Require all granted Allow from all diff -r cc818568a7ec -r 3ee9d9b5724c templates/once.tt --- a/templates/once.tt Thu Dec 31 19:01:39 2015 +0100 +++ b/templates/once.tt Mon Jan 04 11:18:27 2016 +0100 @@ -11,10 +11,12 @@ - + + [% content %] +
[% vcs.version %] | Scripting: Matthias Förste, Heiko Schlittermann