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

Allow to apply certain filters by default (e.g. urlencode) #2020

Open
MartyMcFlyInTheSky opened this issue Aug 16, 2024 · 0 comments
Open

Allow to apply certain filters by default (e.g. urlencode) #2020

MartyMcFlyInTheSky opened this issue Aug 16, 2024 · 0 comments

Comments

@MartyMcFlyInTheSky
Copy link

I want to replace placeholders in URL templates from my python code. The expressions usually default to a regex which by its nature might contain characters that interfere with the URL reserved characters. So I want to always percent encode it. Is there a way to set urlencode builtin filter for all substitutions made by the jinja template engine? If not I would greatly appreciate this option!

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

1 participant