changeset 51:c7819dbf7733

allow files as headers
author k0s <k0scist@gmail.com>
date Sat, 26 Dec 2009 21:45:28 -0500
parents cf77bd13aad9
children 3ddb2ca12178
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Sat Dec 26 21:41:00 2009 -0500
+++ b/bitsyblog/bitsyblog.py	Sat Dec 26 21:45:28 2009 -0500
@@ -87,6 +87,8 @@
 
         # header
         if self.header:
+            if os.path.exists(self.header):
+                self.header = file(self.header).read()
             self.header = Markup(self.header)
 
         # for BitsyAuth