mirror of
https://github.com/Luzifer/past3.git
synced 2024-11-09 16:30:01 +00:00
10 lines
295 B
Python
Executable file
10 lines
295 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import yaml
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
config = yaml.load(open('config.yml', 'r').read(), Loader=yaml.SafeLoader)
|
|
|
|
env = Environment(loader=FileSystemLoader('./'))
|
|
template = env.get_template('index.html')
|
|
print(template.render({'config': config}))
|