]> git.plutz.net Git - serve0/blobdiff - templates/frame.html.sh
styling for pagination links
[serve0] / templates / frame.html.sh
index 41727864ce88053fe0617d096ca2494a1d9dec14..c389e103036bc37f180bcde80e30247491b4dde2 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
 #
 # This file is part of Serve0
 # 
 cat <<EOF
 <!Doctype HTML>
 
-<html>
-  <head>
-    <meta name="viewport" content="width=device-width">
-    <title>$(. $PAGE title)</title>
-    <style type="text/css">
-    <!--
-    $(. $PAGE css)
-    -->
-    </style>
-  </head>
-  <body>
-    $(. $PAGE body)
-  </body>
-</html>
+<html><head>
+  <meta name="viewport" content="width=device-width">
+  <link rel="stylesheet" href="?static=common.css" />
+  <title>${TITLE:-${PAGE}}</title>
+</head>
 EOF
 
+printf '<body class="%s">' "${PAGE}"
+
+[ -x "${BODY}" ] && . "${BODY}" || printf %s Error
+
+printf '</body></html>'
+
 # vi:set filetype=html: