@@ -8,6 +8,13 @@ get_lib_file() {
fi
}
+render_page() {
+ echo "Content-Type: text/html"
+ echo
+
+ handler "$(get_lib_file master.tpl)"
+}
static_file() {
printf "Content-Type: "
select_mime "$1"
@@ -10,8 +10,5 @@ cd ..
if [ -f "./$REQUEST_PATH" ]; then
static_file "./$REQUEST_PATH"
else
- printf "Content-Type: text/html\n"
- printf "\n"
-
- handler "$(get_lib_file master.tpl)"
+ render_page