Flask-Workshop/07-input-url.py

10 lines
244 B
Python

from flask import Flask, render_template
app = Flask(__name__)
@app.route('/starter')
@app.route('/starter/<choice>')
def starter(choice=None):
return render_template('starter.html', choice=choice)
if __name__ == '__main__':
app.run()