]> git.plutz.net Git - confetti/blob - ifcomponent/frame.sh
page skeleton and rough component framework
[confetti] / ifcomponent / frame.sh
1 #!/bin/zsh
2
3 cat <<EOF
4 <!Doctype HTML>
5
6 <html>
7   <head>
8     <title>$TITLE</title>
9     <style type="text/css">
10     <!--
11
12
13     $($PAGE css)
14     -->
15     </style>
16   </head>
17   <body>
18     <div class="NAVIGATION">
19       $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:<a href="\1">\2</a>:g')
20     </div>
21     <div class="MAIN">
22       $($PAGE body)
23     </div>
24   </body>
25 </html>
26 EOF