Instead of using send_static_file, I want to use something like html('<h1>content</h1>')
, sort of like jsonify.
@app.route('/incorrect_pass')
def incorrect_pass():return html('Incorrect password. <a href="/">Go back?</a>')
Is what I want to do.
Instead of using send_static_file, I want to use something like html('<h1>content</h1>')
, sort of like jsonify.
@app.route('/incorrect_pass')
def incorrect_pass():return html('Incorrect password. <a href="/">Go back?</a>')
Is what I want to do.
Never mind. Should've checked. Flask returns strings as html, so the html()
isn't necessary above.