mirror of
https://github.com/balkian/gists.git
synced 2024-11-22 01:32:29 +00:00
Add 'repos/d08fb2dd1b01cb8b46ac/' from commit '66596707e4fd1ff309e710db0ccc6a918b32ff78'
git-subtree-dir: repos/d08fb2dd1b01cb8b46ac git-subtree-mainline:c036859294
git-subtree-split:66596707e4
This commit is contained in:
commit
08e1bd4f46
12
repos/d08fb2dd1b01cb8b46ac/genera.py
Normal file
12
repos/d08fb2dd1b01cb8b46ac/genera.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from __future__ import print_function
|
||||||
|
import csv
|
||||||
|
from jinja2 import Template
|
||||||
|
|
||||||
|
with open('PC Members.tsv') as f:
|
||||||
|
contacts = csv.DictReader(f, delimiter='\t')
|
||||||
|
|
||||||
|
with open('index.j2') as templatefile:
|
||||||
|
template = Template(templatefile.read())
|
||||||
|
|
||||||
|
with open('web/index.html', 'w') as web:
|
||||||
|
web.write(template.render(contacts=contacts))
|
Loading…
Reference in New Issue
Block a user