#!/bin/sh # Most general template template for nyll. CURRENT_PAGE=$(echo "$1" | cut -d. -f 1) LOCALE="en" if_page () { if [ "$CURRENT_PAGE" = "$1" ]; then echo "$2" fi } get_url () { echo "/${LOCALE:?}/$1.html" } cat << EOF ${TITLE:?}
$(cat "$1")
EOF