aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2009-02-23 14:42:59 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2009-02-23 14:42:59 +0100
commit1d7292fda2170d3c8ab5c56d1c266a5856a14012 (patch)
treeb0bc1011559b839d5ba26388a44606399e251f85
parent1d847f6db4463110b3c2d9ddfcc52973304b2cbb (diff)
Split the web page template into reusable parts.
-rw-r--r--footer.st9
-rw-r--r--header.st17
-rw-r--r--index.st16
3 files changed, 30 insertions, 12 deletions
diff --git a/footer.st b/footer.st
new file mode 100644
index 0000000..bea2fe1
--- /dev/null
+++ b/footer.st
@@ -0,0 +1,9 @@
+</body>
+</html>
+
+<!--
+Local Variables:
+ mode: html
+ coding: utf-8
+End:
+-->
diff --git a/header.st b/header.st
new file mode 100644
index 0000000..16d1864
--- /dev/null
+++ b/header.st
@@ -0,0 +1,17 @@
+<?xml version="1.0" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>$title$ &mdash; G&ouml;del-Gentzen Clojure Syndication Services Super System</title>
+</head>
+
+<body>
+
+<!--
+Local Variables:
+ mode: html
+ coding: utf-8
+End:
+-->
diff --git a/index.st b/index.st
index e41e9b5..927a70b 100644
--- a/index.st
+++ b/index.st
@@ -1,17 +1,9 @@
-<?xml version="1.0" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+$header(title=title)$
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>$title$ &mdash; G&ouml;del-Gentzen Clojure Syndication Services Super System</title>
-</head>
+<h1 class="title">$title$</h1>
+<p>$mainParagraph$</p>
-<body>
- <h1 class="title">$title$</h1>
- <p>$mainParagraph$</p>
-</body>
-</html>
+$footer()$
<!--
Local Variables: