Handle jinja2 renamed context decorators
authorMagnus Hagander <magnus@hagander.net>
Tue, 12 Nov 2024 14:32:46 +0000 (15:32 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 12 Nov 2024 14:32:46 +0000 (15:32 +0100)
commitb982a1d85da48090e5456f59f53d28c55af59145
tree418c1ba06cb8f9b10783bac12c51a9779ef1a864
parentaa7967d5d39f909a4c340866d25c1456e66af33d
Handle jinja2 renamed context decorators

Jinja2 v3.0 renamed contextfilter to pass_context. Put some code in that
handles both the v3 and v2 name at the same time, as a first step
towards supporting jinja2 v3.
postgresqleu/confreg/jinjafunc.py
tools/deploystatic/deploystatic.py