mirror of https://github.com/balkian/gists
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
354 B
Python
13 lines
354 B
Python
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))
|