Skip to content

2.7.0

Choose a tag to compare

@wrabit wrabit released this 26 May 09:48
· 171 commits to main since this release
6711270

Performance gains + fixes

  • @nickpetrovic in #355

    • 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.

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

Full Changelog: 2.6.2...2.7.0