matthewp / corset

Declarative data bindings, bring your own backend.
https://corset.dev/
BSD 2-Clause "Simplified" License
275 stars 2 forks source link

Use fewer data attributes #163

Closed matthewp closed 2 years ago

matthewp commented 2 years ago

This consolidates data attributes, grouping them by type, so that you might have:

<div data-corset-props="--one --two --three"></div>

Instead of:

<div data-corset-prop-one data-corset-prop-two data-corset-prop-three></div>

This means less clutter in the DOM.

In addition to data-corset-props there is also data-corset-stores for stores and data-corset-scope for each scope values (item and index).

Fixes #155 Closes #160

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 59b4fadc6ce4d826feb01bd04249de6670d6fbae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | corset | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR