home · contact · privacy
Add HTML templating, extend tests.
[redo-blog] / processor / metadata / index.tmpl.do
diff --git a/processor/metadata/index.tmpl.do b/processor/metadata/index.tmpl.do
new file mode 100644 (file)
index 0000000..c2a9c21
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ ! -f "$1" ]; then
+cat << EOF
+<!DOCTYPE html>
+<html>
+<head>
+<title>%TITLE%</title>
+</head>
+<body>
+<h1>%TITLE%</h1>
+<ul>
+%LIST%
+</ul>
+</body>
+</html>
+EOF
+fi