Created
January 19, 2016 18:57
-
-
Save balkian/d08fb2dd1b01cb8b46ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment