X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fframe.html.sh;h=5fd6e7c971137a25043f7f1ec4215793ebdd88f5;hb=015242823eb4a79cf615bef6951b0af6bd0a5b01;hp=fafd0b215319bef787c782c3a2db17c1e0a14060;hpb=0e814c6ffab2486405f60a1dfbfa048e76bba1f2;p=lobster
diff --git a/templates/frame.html.sh b/templates/frame.html.sh
index fafd0b2..5fd6e7c 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,19 +17,24 @@
# 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})
+
- $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:\2:g')
+ $(debug NAVIGATION = "$NAVIGATION"; for each in ${NAVIGATION}; do printf %s "$(l10n "p_${each}")"; done)