]> git.plutz.net Git - confetti/blobdiff - ifcomponent/frame.sh
page skeleton and rough component framework
[confetti] / ifcomponent / frame.sh
diff --git a/ifcomponent/frame.sh b/ifcomponent/frame.sh
new file mode 100755 (executable)
index 0000000..fa04fd6
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/zsh
+
+cat <<EOF
+<!Doctype HTML>
+
+<html>
+  <head>
+    <title>$TITLE</title>
+    <style type="text/css">
+    <!--
+
+
+    $($PAGE css)
+    -->
+    </style>
+  </head>
+  <body>
+    <div class="NAVIGATION">
+      $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:<a href="\1">\2</a>:g')
+    </div>
+    <div class="MAIN">
+      $($PAGE body)
+    </div>
+  </body>
+</html>
+EOF