]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Setup basic templating; largely copied from BlueRhapsody
authorEvan Broder <broder@mit.edu>
Sun, 13 Jul 2008 14:57:27 +0000 (14:57 +0000)
committerEvan Broder <broder@mit.edu>
Sun, 13 Jul 2008 14:57:27 +0000 (14:57 +0000)
bluechips/templates/base.mako [new file with mode: 0644]

diff --git a/bluechips/templates/base.mako b/bluechips/templates/base.mako
new file mode 100644 (file)
index 0000000..fc4398c
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+    <title>${self.title()}</title>
+    ${h.stylesheet_link('/css/main.css')}
+  </head>
+  <body>
+    <h1>${self.title()}</h1>
+    <div id="content">
+      ${next.body()}
+    </div>
+  </body>
+</html>
+
+<%def name="title()">BlueChips</%def>