Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PhoneGap Index Renderer (Jinja2)
import sys
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