constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 7a8b014812947e913c6986dc7f3f70d75895a780
parent 1e2ed739177e4d0524ad6ca94f2078d825989648
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun, 15 Aug 2010 16:50:08 +1000

support for simple file wrapping

Diffstat:
Mconstance.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/constance.py b/constance.py
@@ -46,6 +46,10 @@ def main():
     blog_entries = blog.generate(options.blog_dir, xslt)
     reading_entries = reading.generate(options.reading_log, xslt)
     tags.generate(options.tags_dir, xslt, blog_entries)
+    for filename in os.listdir(options.root_dir):
+        if filename.endswith('.html.in'):
+            transformed = str(xslt(lxml.etree.parse(filename)))
+            output(filename[:-3], transformed)
     homepage.generate(options.root_dir, xslt, blog_entries, reading_entries)
 
 if __name__ == '__main__':