1
0
mirror of https://github.com/Luzifer/past3.git synced 2024-09-19 17:02:59 +00:00
past3/generate.py
Knut Ahlers 0cba83022d
Fix remaining BS4 update, add private files feature
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-25 01:18:01 +02:00

11 lines
272 B
Python
Executable File

#!/usr/bin/env python2
import yaml
from jinja2 import Environment, FileSystemLoader
config = yaml.load(open('config.yml', 'r').read())
env = Environment(loader=FileSystemLoader('./'))
template = env.get_template('index.html')
print(template.render({'config': config}))