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 3 of 11

1.3.0

Support hyphenated filenames
* added support for hyphenated component filenames by wrabit in https://github.com/wrabit/django-cotton/pull/214

This introduces a new config option as detailed in the docs: https://django-cotton.com/docs/configuration.

Summary

`<c-my-button />`

Filepath before: `cotton/my_button.html`

Filepath after: `cotton/my-button.html`
(with `COTTON_SNAKE_CASED_NAMES = False`)

What else

* raise value error when multiple c-vars provided by wrabit in https://github.com/wrabit/django-cotton/pull/213

Cotton only supports a maximum of 1 `c-vars` tag per component. Some user's reach for using multiple, which is not currently supported. To ensure this is clear, cotton now raises an exception when it detects more than one `c-vars` in a component.

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.2.1...v1.3.0

1.2.1

What's Changed
* Fixes direct rendering components that use cvars, referenced in 201, by wrabit in https://github.com/wrabit/django-cotton/pull/202


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.2.0...v1.2.1

1.2.0

What's Changed
* Supports dynamic components with `only` context isolation by wrabit in https://github.com/wrabit/django-cotton/pull/197


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.1.3...v1.2.0

1.1.3

What's Changed

* Prevent loader from modifying Engine.dirs by alorence in https://github.com/wrabit/django-cotton/pull/191
* added docs about the new 'only' attribute by wrabit in https://github.com/wrabit/django-cotton/pull/185

New Contributors
* alorence made their first contribution in https://github.com/wrabit/django-cotton/pull/191

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.1.2...v1.1.3

1.1.2

What's Changed
* `only` support for isolating context by mattbha in https://github.com/wrabit/django-cotton/pull/174
* Makes tooling more deterministic mattbha in https://github.com/wrabit/django-cotton/pull/175
* Additional Test for HTMX vals support - added another test by mattbha in https://github.com/wrabit/django-cotton/pull/177
* Removes some unused deps, files and imports by wrabit in https://github.com/wrabit/django-cotton/pull/178


**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.1.1...v1.1.2

1.1.1

Bug fix
* Enabled multiline tags in manual setup.

**Full Changelog**: https://github.com/wrabit/django-cotton/compare/v1.1.0...v1.1.1

Page 3 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.