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

[Feature Request] #87

Closed
mikkab opened this issue Jun 2, 2022 · 3 comments
Closed

[Feature Request] #87

mikkab opened this issue Jun 2, 2022 · 3 comments

Comments

@mikkab
Copy link

mikkab commented Jun 2, 2022

Hi,

Just testing templating module, it looks great, but one feature is terrible, by default autoescape of Jinja2 is ON and lots of symbols is escaped. solution is simple:
app.ext.environment.autoescape = False

I use url_for() function in Flask and it' will be good to add it to templating

Thanks

@ahopkins
Copy link
Member

ahopkins commented Jun 3, 2022

Would you be willing to add a PR for that? There are probably more options we should make available as well. Or, in some other way open the api.

@ahopkins
Copy link
Member

I am going to close this because I am not sure there is functionality change needed for this. The Environment object is already exposed:

app.ext.templating.environment.autoescape = False

@ahopkins
Copy link
Member

Happy to entertain other thoughts of API improvements here though.

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