O'Reilly logo
  • Dhananjeyan Kaneshayogan thinks this is interesting:

@app.route("/") def homepage(): return render_template("homepage.html")

From

Cover of Learning Flask Framework

Note

This code is different to what was defined earlier.

@app.route('/')
def homepage():
name = request.args.get('name')
if not name:
name = '<unknown>'
return render_template('homepage.html', name=name)