flask-static-tutorial icon indicating copy to clipboard operation
flask-static-tutorial copied to clipboard

How to enable only HTML instead of Markdown?

Open paulocoutinhox opened this issue 4 years ago • 1 comments

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.

paulocoutinhox avatar Oct 27 '21 05:10 paulocoutinhox

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)

DeadWisdom avatar Nov 20 '21 14:11 DeadWisdom