Skip to content

Instantly share code, notes, and snippets.

@sp3c73r2038
Created April 22, 2015 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sp3c73r2038/2b4db4bc0438e8a67fb8 to your computer and use it in GitHub Desktop.
Save sp3c73r2038/2b4db4bc0438e8a67fb8 to your computer and use it in GitHub Desktop.
Native usage of Jinja2
# -*- coding: utf-8 -*-
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader('templates'))
t = env.get_template('test.jinja2')
print(t.render(name='world'))
hello, {{ name }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment