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