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

Adds python compatibility support to contrib #521

Merged
merged 3 commits into from
Jun 9, 2024
Merged

Conversation

mitsuhiko
Copy link
Owner

@mitsuhiko mitsuhiko commented Jun 9, 2024

This adds pycompat, a new module to minijinja-contrib. It also adds a --py-compat flag to the CLI which enables it.

Once this is registered as an unknown method callback the engine supports functions such as dict.keys for better compatibility with Python based Jinja2 templates.

Refs #438

@mitsuhiko mitsuhiko merged commit 3a4aed3 into main Jun 9, 2024
30 checks passed
@mitsuhiko mitsuhiko deleted the feature/pycompat branch June 9, 2024 22:48
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.

1 participant