Created
April 8, 2016 13:45
-
-
Save Elizaveta239/d271ab1dcaa87204df3055ec6d9e481d to your computer and use it in GitHub Desktop.
This file contains 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 | |
from jinja2.loaders import FileSystemLoader | |
if __name__ == '__main__': | |
context = {'seq': [2, 3, 4], 'name': 'Armin'} | |
env = Environment(loader=FileSystemLoader('templates')) | |
tmpl = env.get_template('test3.html') | |
answer = tmpl.render(context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment