Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created September 7, 2011 18:48
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 pamelafox/1201369 to your computer and use it in GitHub Desktop.
Save pamelafox/1201369 to your computer and use it in GitHub Desktop.
Jinja2 Rendering Templates
from jinja2 import Environment, FileSystemLoader
if __name__ == "__main__":
env = Environment(loader=FileSystemLoader('application/templates/'))
template = env.get_template('phonegap/index.html')
print template.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment