flask-static-tutorial
flask-static-tutorial copied to clipboard
How to enable only HTML instead of Markdown?
Hi,
Nice Project!
How to enable only HTML instead of Markdown?
I don't use markdown, but use it as html site generator only.
Thanks.
In that case, you could adjust your rendering function to something like this, assuming you still want template functionality:
@app.route("/")
@app.route("/<path:path>")
def page(path="index.html"):
# Just render the template at the path
return render_template(path)