From 42fae219fc43e516d7f443152038cdf70abd9790 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Tue, 14 May 2019 20:35:34 -0400 Subject: bin/news: Add template. * bin/news (template): New function. --- bin/news | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/news') diff --git a/bin/news b/bin/news index 9630649..5c4c2bb 100644 --- a/bin/news +++ b/bin/news @@ -69,6 +69,10 @@ def content(c): return c[m.end():] +def template(type): + return read('templates/{}.html'.format(type)) + + def process(f): c = read(f.path) -- cgit v1.2.3