mirror of
https://github.com/Luzifer/past3.git
synced 2024-11-14 02:32:41 +00:00
11 lines
261 B
Python
Executable file
11 lines
261 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))
|
|
|