Skip to content

Set url_for global for custom jinja envs#2230

Merged
Kludex merged 5 commits intoKludex:masterfrom
alex-oleshkevich:url_for_env
Aug 25, 2023
Merged

Set url_for global for custom jinja envs#2230
Kludex merged 5 commits intoKludex:masterfrom
alex-oleshkevich:url_for_env

Conversation

@alex-oleshkevich
Copy link
Contributor

Starlette defines url_for helper in Jinja2Templates by default. However, when a custom environment is used, this helper is missing.
This PR fixes this issue.

@Kludex Kludex enabled auto-merge (squash) August 25, 2023 19:10
@Kludex
Copy link
Owner

Kludex commented Aug 25, 2023

Thanks @alex-oleshkevich :)

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

Successfully merging this pull request may close these issues.

2 participants