Django-cotton

Latest version: v1.5.1

Safety actively analyzes 688126 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 10

1.0.0

What's Changed

Summary:
- Simplified loader logic, moving cvars logic to templatetags
- Dropped internal requirement for component keys throughout
- Improved component template caching
- Cleaned shared responsibility of slot tag and created new internal tag - 'attr' to handle attribute expressions
- Simplified context handling, now keep all cotton related state in own context object
- Up to 32% faster*

Performance vs old*

These benchmarks were run over 5 iterations with 500 iterations per test case (representing the rare cases you may have ~500 components on the page), comparing Django native vs. Cotton for loops, block and extends, and includes.

For loop


Django average: 2.18 ms



- Cotton before: 4.65 ms
- Cotton after: 3.17 ms

0.9.40

What's Changed
* Prevent cvars modifying state above it by wrabit in https://github.com/wrabit/django-cotton/pull/132
* Tidied up _component by wrabit in https://github.com/wrabit/django-cotton/pull/133
* Poetry lock by wrabit in https://github.com/wrabit/django-cotton/pull/130


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.39...v0.9.40

0.9.39

What's Changed
* Upgraded docs django and python, plus set a version on django dependency by wrabit in https://github.com/wrabit/django-cotton/pull/128
* Requestcontext issue by wrabit in https://github.com/wrabit/django-cotton/pull/129


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.38...v0.9.39

0.9.38

Prevent unintended encoding of decoded html entities in components

* Prevent compilation step from encoding html chars by wrabit in https://github.com/wrabit/django-cotton/pull/127
* Dynamic attributes docs by wrabit in https://github.com/wrabit/django-cotton/pull/123

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.37...v0.9.38

0.9.37

What's Changed
* Cleanup tests by wrabit in https://github.com/wrabit/django-cotton/pull/118
* fixed multiline cvar values error by wrabit in https://github.com/wrabit/django-cotton/pull/119
* Spaces between vars by wrabit in https://github.com/wrabit/django-cotton/pull/121


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.36...v0.9.37

0.9.36

What's Changed
* Update README.md by mattbha in https://github.com/wrabit/django-cotton/pull/115
* Use cvars for unprocessable dynamic attribute by wrabit in https://github.com/wrabit/django-cotton/pull/117

Related:
- 116

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.35...v0.9.36

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.