Created
October 31, 2016 18:57
-
-
Save junjuew/3cbfeceb84b31156c28d05bf70a2def9 to your computer and use it in GitHub Desktop.
Simple Flask Boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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