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 8 of 10

0.9.21

What's Changed
* fixes '=' in attribute values by wrabit in https://github.com/wrabit/django-cotton/pull/65

Fixed [issue](64) reported by aaltatan where '=' was breaking the attribute parsing by _component.

What else
* added contributing by wrabit in https://github.com/wrabit/django-cotton/pull/62
* updated poetry lock by wrabit in https://github.com/wrabit/django-cotton/pull/66


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.20...v0.9.21

v.0.9.22
What's Changed
* Scan all app dirs by wrabit in https://github.com/wrabit/django-cotton/pull/67


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.21...v.0.9.22

0.9.20

What's Changed
* set charset from engine default by wrabit in https://github.com/wrabit/django-cotton/pull/61

Default charset when processing template files should be utf-8 or as defined in the the loader settings. This was being skipped. Related to an [issue](60) from zagro-dev.

* fixed tabbed component on docs home by wrabit in https://github.com/wrabit/django-cotton/pull/58
* improved some coherence in component and slot by wrabit in https://github.com/wrabit/django-cotton/pull/59


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.19...v0.9.20

0.9.19

What's Changed
* permitted duplicate attributes in DTL by wrabit in https://github.com/wrabit/django-cotton/pull/57

pedroven identified an [issue](55) where the loader was not allowing us to use Django template expressions to govern whole attributes inside html elements. This was due to the compilation where BS4 cleanses HTML removing duplicate attributes adhering to [html spec](https://html.spec.whatwg.org/multipage/syntax.html#attributes-2):

> There must never be two or more attributes on the same start tag whose names are an [ASCII case-insensitive](https://infra.spec.whatwg.org/#ascii-case-insensitive) match for each other.

Since our target is not HTML, but Django Template Language, this behaviour is not desirable, we now manage this in the Cotton Compiler.

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.18...v0.9.19

0.9.18

What's Changed
* fixed attributes with leading or trailing quotes by wrabit in https://github.com/wrabit/django-cotton/pull/56


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.17...v0.9.18

0.9.17

What's Changed
* Minor cleanup by wrabit in https://github.com/wrabit/django-cotton/pull/53


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.16...v0.9.17

0.9.16

What's Changed
* Cotton component caching by wrabit in https://github.com/wrabit/django-cotton/pull/51

Cotton components are now cached whilst in production / `DEBUG = False`.

- The cache type is LRU with a record count of 1024 which will be cleared on app restart
- Future refinement needed to optimise the responsibility of caching in the loader
- Planned improvement of hybrid caching during development

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v0.9.15...v0.9.16

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.