X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fframe.html.sh;h=5fd6e7c971137a25043f7f1ec4215793ebdd88f5;hp=b76717bb0416eb5eb68cc48e89d68095f8fa9708;hb=33a8e0e8967077bb2aa63b4bea706dc61d3e42d8;hpb=25a24a7d834757e006b46b863453d5f79780a63f diff --git a/templates/frame.html.sh b/templates/frame.html.sh index b76717b..5fd6e7c 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -1,32 +1,61 @@ +#!/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