home
·
contact
·
privacy
projects
/
redo-blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
+++ b/
processor/metadata/index.tmpl.do
@@ -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