Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable only HTML instead of Markdown? #2

Open
paulocoutinhox opened this issue Oct 27, 2021 · 1 comment
Open

How to enable only HTML instead of Markdown? #2

paulocoutinhox opened this issue Oct 27, 2021 · 1 comment

Comments

@paulocoutinhox
Copy link

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.

@DeadWisdom
Copy link
Owner

DeadWisdom commented Nov 20, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants