diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2009-02-23 14:42:59 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2009-02-23 14:42:59 +0100 |
commit | 1d7292fda2170d3c8ab5c56d1c266a5856a14012 (patch) | |
tree | b0bc1011559b839d5ba26388a44606399e251f85 | |
parent | 1d847f6db4463110b3c2d9ddfcc52973304b2cbb (diff) |
Split the web page template into reusable parts.
-rw-r--r-- | footer.st | 9 | ||||
-rw-r--r-- | header.st | 17 | ||||
-rw-r--r-- | index.st | 16 |
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$ — Gödel-Gentzen Clojure Syndication Services Super System</title> +</head> + +<body> + +<!-- +Local Variables: + mode: html + coding: utf-8 +End: +--> @@ -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$ — Gö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: |