You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
448 B
16 lines
448 B
#!/usr/bin/env python
|
|
|
|
import json
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
|
|
if __name__ == "__main__":
|
|
with open("data.json") as f:
|
|
data = json.loads(f.read())
|
|
|
|
env = Environment(loader=FileSystemLoader("./"),
|
|
trim_blocks=True, lstrip_blocks=True)
|
|
template = env.get_template("README.template.md")
|
|
|
|
with open("README.md", "w") as f:
|
|
f.write(template.render(data=data).encode('utf8'))
|
|
|