Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created August 4, 2012 18:14
Show Gist options
  • Save erikhazzard/3259113 to your computer and use it in GitHub Desktop.
Save erikhazzard/3259113 to your computer and use it in GitHub Desktop.
# ==============================================================================
# app.py
# A backend example for the proto demo. Will serve up data and static pages
#
# ==============================================================================
import flask
import datetime
import json
import re
PORT = 8001
# ==============================================================================
#
# Static Endpoints
#
# ==============================================================================
#Base render func, everything get passed through here
def render_skeleton(template_name='index.html', **kwargs):
return flask.render_template(template_name, **kwargs)
@app.route('/')
def index():
return flask.render_template('index.html')
# ==============================================================================
#
# Run server
#
# ==============================================================================
if __name__ == "__main__":
app.debug = True
app.run(port=8001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment