summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-05-14 20:35:34 -0400
committerrsiddharth <s@ricketyspace.net>2019-05-14 20:35:47 -0400
commit42fae219fc43e516d7f443152038cdf70abd9790 (patch)
tree64885b524d23c5a2529704e2df3408c1067228f6 /bin
parentcb4afc0165c470e862c8676901100531ce584ab2 (diff)
bin/news: Add template.
* bin/news (template): New function.
Diffstat (limited to 'bin')
-rw-r--r--bin/news4
1 files changed, 4 insertions, 0 deletions
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)