Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created December 24, 2011 00:12
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pamelafox/1515758 to your computer and use it in GitHub Desktop.
PhoneGap Index Renderer (Jinja2)
import sys
sys.path.append('/Library/Python/2.7/site-packages')
from jinja2 import Environment, FileSystemLoader
if __name__ == "__main__":
env = Environment(loader=FileSystemLoader('application/templates/'))
template = env.get_template('phonegap/index.html')
print template.render(debug=False, mobile=True, native=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment