Skip to content

Instantly share code, notes, and snippets.

@dungdm93 dungdm93/
Last active Oct 18, 2018

What would you like to do?
Render Jinja template
import jinja2
loader = jinja2.FileSystemLoader(searchpath="./")
env = jinja2.Environment(loader=loader)
TEMPLATE_FILE = "template.j2"
template = env.get_template(TEMPLATE_FILE)
output = template.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.