matthewp / corset

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

Allow multiple bindings with store-set #175

Closed matthewp closed 2 years ago

matthewp commented 2 years ago

This change makes it so that you can use multiple store-set calls within the same selector.

#app {
  store-root: app;
  store-set: app first "Wilbur";
  store-set: app last "Phillips";
  --full-name: store-get(app, first) " " store-get(app, last);
  text: var(--full-name);
}
changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: f454d23ba7046f22454024a252a1a2343deee56c

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