diff options
Diffstat (limited to 'bin/news')
-rw-r--r-- | bin/news | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -92,6 +92,15 @@ def markdown(c): return r.stdout +def html(t, d, c): + h = template('news') + h = h.replace(PH['title'], t, 2) + h = h.replace(PH['date'], datefmt(d), 1) + h = h.replace(PH['content'], markdown(c), 1) + + return h + + def process(f): c = read(f.path) |