X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fframe.html.sh;h=2cc13d13231cb638d45ff61807e2ce3a8fdf422b;hp=c15561182d87348a5304365d5646e37fc66e3f3f;hb=d1e59a3ea7fc974ef954c8b5e66e06fe1af3ac55;hpb=897b7547744c22f5a331f3ee06032340ca65ac16 diff --git a/templates/frame.html.sh b/templates/frame.html.sh index c155611..2cc13d1 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -1,24 +1,79 @@ +#!/bin/zsh + +# Copyright 2014, 2015 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . + +. "${_EXEC}/templates/text_frame.sh" +[ -x "${_EXEC}/templates/text_${PAGE}.sh" ] && . "${_EXEC}/templates/text_${PAGE}.sh" + cat < - $($PAGE title) + $(l10n p_${PAGE}) - + -
- $(. $PAGE body) + $(debug NAVIGATION = "$NAVIGATION"; for each in ${NAVIGATION}; do printf %s "$(l10n "p_${each}")"; done)
+ $(debug BODY; [ -x "${BODY}" ] && . "${BODY}" || printf %s 'Error') EOF