-
-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Hey @flosh,
I've been maintaining a fork of pongo2 for a few years now. I just rebased on v7.0.0-alpha1 and pushed my changes here.
I didn't create pull requests as I'm not sure if you're interested in Jinja support, and many of these commits are for Jinja features and syntax (multiple filter arguments, Jinja filter argument syntax, tests like {{ 42 is even }}, dict literals, etc).
Some of the improvements might be useful to regular users of pongo2 even without the Jinja features, though... notably:
- the performance improvements here and here
- internationalization support via Django's "translate" tag
- an option to disable function invocation on context variables and their members
- support for referencing variables in embedded structs the same way you can in Go
- case-insensitive struct field/map key lookups
There are also some changes that make pongo2 more useful outside of the context of HTML (like Ansible's use of Jinja templates).
If you're interested in any/all of these changes, I'd be happy to create pull requests.
I've also written a number of Jinja2- and Ansible-compatible filters in a separate repo. If you're interested in merging any of those, I'd be willing to port them over as well.