-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
#
# This file is part of Serve0
#
<html>
<head>
- <title>$(. $PAGE title)</title>
+ <meta name="viewport" content="width=device-width">
+ <title>${PAGE}</title>
<style type="text/css">
<!--
- $(. $PAGE css)
+ $(. "${_EXEC}/templates/common.css.sh")
-->
</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>
</head>
<body>
- $(. $PAGE body)
+ $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)
</body>
</html>
EOF