Skip to content

Instantly share code, notes, and snippets.

@aleiphoenix aleiphoenix/app.py
Created Apr 22, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.