2.7.0
Performance gains + fixes
-
- Previously, template tags and variables in attributes were parsed and compiled on every render. #355 moves this to template compile time so Variable, Template, and literal objects are built once when the template is loaded, not on each render. Up to a ~5x speedup was observed.
-
@martinblech in #347
- Fixes a bug where registered-but-unloaded template libraries could leak into attribute and c-vars evaluation, causing tags like
{% url %}to resolve differently than in normal Django templates.
- Fixes a bug where registered-but-unloaded template libraries could leak into attribute and c-vars evaluation, causing tags like
More
- Add regression test for template tags in dynamic attributes (#348) by @wrabit in #354
- Narrow broad exception catches to specific types by @wrabit in #356
- Add future annotations for older Python compat, extend test matrix to 3.8/3.9 by @wrabit in #358
- Remove dead code from recent refactors by @wrabit in #359
New Contributors
- @martinblech made their first contribution in #347
- @nickpetrovic made their first contribution in #355
Full Changelog: 2.6.2...2.7.0