Created
September 6, 2014 14:22
-
-
Save njouanin/36292368ad15f9b87ba0 to your computer and use it in GitHub Desktop.
Jinja2 i18n test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jinja2 import Environment, FileSystemLoader | |
env = Environment(loader=FileSystemLoader('theme/templates'), extensions=['jinja2.ext.i18n']) | |
template=env.get_template('base.html') | |
print(template.render()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@njouanin can you add base.html