Skip to content

Instantly share code, notes, and snippets.

@njouanin
Created September 6, 2014 14:22
Show Gist options
  • Save njouanin/36292368ad15f9b87ba0 to your computer and use it in GitHub Desktop.
Save njouanin/36292368ad15f9b87ba0 to your computer and use it in GitHub Desktop.
Jinja2 i18n test
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader('theme/templates'), extensions=['jinja2.ext.i18n'])
template=env.get_template('base.html')
print(template.render())
@kirankotari
Copy link

@njouanin can you add base.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment