X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fframe.html.sh;fp=templates%2Fframe.html.sh;h=738ec2994438fc3094f6c66c44bb23c80d193f9a;hp=27d946668922195dd2252e731e82a5acb0563f54;hb=badf769c566295e6ceaf9a9d80de664c227666a4;hpb=4e49d483fd5121fda86a33cf583c15afa6556ad1 diff --git a/templates/frame.html.sh b/templates/frame.html.sh index 27d9466..738ec29 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -1,4 +1,6 @@ -# Copyright 2014 Paul Hänsch +#!/bin/zsh + +# Copyright 2014, 2015 Paul Hänsch # # This file is part of Confetti. # @@ -15,12 +17,15 @@ # 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 BODY; [ -x "${BODY}" ] && . "${BODY}" || printf %s 'Error') EOF