fsfi

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 42fae219fc43e516d7f443152038cdf70abd9790
parent cb4afc0165c470e862c8676901100531ce584ab2
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 14 May 2019 20:35:34 -0400

bin/news: Add template.

* bin/news (template): New function.

Diffstat:
bin/news | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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)