Skip to content

2.8.0

Choose a tag to compare

@wrabit wrabit released this 14 Oct 11:01
· 65 commits to main since this release
091d74a

What's Changed

  • New COTTON_ISOLATE_BY_DEFAULT setting (default False). Opt in to have every component rendered with smart isolation: parent template variables are blocked, context processor output is kept, only still gives total isolation. Replaces the experimental COTTON_ENABLE_CONTEXT_ISOLATION, which still works with a deprecation warning. By @wrabit in #364
  • Groundwork for the isolation setting (#327) by @alkapandey1031986-arch in #345
  • Cache settings reads and index.html path resolution across component renders by @PhilippTh in #370
  • Components not found at the configured path now fall back to the default cotton/ directory and snake_case filename, so they resolve with a custom COTTON_DIR or COTTON_SNAKE_CASED_NAMES = False. By @wrabit in #372

Docs

New Contributors

Full Changelog: 2.7.2...2.8.0