Create a gist now

Instantly share code, notes, and snippets.

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