Skip to content

Instantly share code, notes, and snippets.

@junjuew
Created October 31, 2016 18:57
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 junjuew/3cbfeceb84b31156c28d05bf70a2def9 to your computer and use it in GitHub Desktop.
Save junjuew/3cbfeceb84b31156c28d05bf70a2def9 to your computer and use it in GitHub Desktop.
Simple Flask Boilerplate
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/<string:page_name>/')
def static_page(page_name):
return render_template('%s.html' % page_name)
if __name__ == '__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment