]> git.plutz.net Git - serve0/blobdiff - templates/frame.html.sh
serve html file statically
[serve0] / templates / frame.html.sh
index 822659b78df896757995da80d18f3ee83c60290c..e6f2d6e71d8eb6e7302f94bec35f9fe6d12b7515 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014 - 2016 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -20,32 +20,12 @@ cat <<EOF
 
 <html>
   <head>
-    <title>$(. $PAGE title)</title>
-    <style type="text/css">
-    <!--
-    $(. $PAGE css)
-    -->
-    </style>
-    <script type="text/javascript">
-    <!--
-    function show_block(id){
-      document.getElementById(id).style.display = "block";
-      try{document.getElementById('vid_'+id).play();}catch(foo){}
-    }
-    function show_inline(id){
-      document.getElementById(id).style.display = "inline";
-      try{document.getElementById('vid_'+id).play();}catch(foo){}
-    }
-    function hide_block(id){
-      try{document.getElementById('vid_'+id).pause();}catch(foo){}
-      document.getElementById(id).style.display = "none";
-    }
-    function hide_inline(id){ hide_block(id);}
-    -->
-    </script>
+    <meta name="viewport" content="width=device-width">
+    <title>${TITLE:-${PAGE}}</title>
+    <link rel="stylesheet" href="?static=common.css" />
   </head>
   <body>
-    $(. $PAGE body)
+    $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)
   </body>
 </html>
 EOF