Jinja2 - sjherrick/code-base GitHub Wiki
Templates folder in dir of main.py
from jinja2 import FileSystemLoader, Environment
env = Environment(loader=FileSystemLoader('templates'), trim_blocks=True, lstrip_blocks=True)
template = env.get_template('template.j2')
output = template.render(var1=<var1>, var2=<var2>,...)