Django-cotton

Latest version: v2.0.3

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

Scan your dependencies

Page 9 of 11

0.9.23

What's Changed
* better whitespace control by wrabit in https://github.com/wrabit/django-cotton/pull/69

An [issue](https://github.com/wrabit/django-cotton/issues/68) caused a discovery that tags were being mutated if DTL syntax was against an opening tag name i.e.

html
<li{% expr %}>..</li>


Which after processing resulted in:

html
<li{% expr %}>..</li{% expr %}>


We solved it by better handling of white space when we match and replace the DTL expressions.

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

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

Page 9 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.