]> git.plutz.net Git - serve0/blobdiff - templates/frame.html.sh
updates in shcgi
[serve0] / templates / frame.html.sh
index 41727864ce88053fe0617d096ca2494a1d9dec14..7d953da972f014665bbed2df282426d4dadf278d 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -21,15 +21,15 @@ cat <<EOF
 <html>
   <head>
     <meta name="viewport" content="width=device-width">
-    <title>$(. $PAGE title)</title>
+    <title>${PAGE}</title>
     <style type="text/css">
     <!--
-    $(. $PAGE css)
+    $(. "${_EXEC}/templates/common.css.sh")
     -->
     </style>
   </head>
   <body>
-    $(. $PAGE body)
+    $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)
   </body>
 </html>
 EOF