10000 Root hash attributes by willcosgrove · Pull Request #889 · yippee-fun/phlex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Root hash attributes #889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 4, 2025
Merged

Root hash attributes #889

merged 3 commits into from
Apr 4, 2025

Conversation

willcosgrove
Copy link
Contributor

This closes #887 by allowing hash attribute values to set the root attribute using the :_ key.

div(data: { _: "root", controller: "copy" })
<div data="root" data-controller="copy"></div>

It also includes a change to mix to allow it to mix scalar values with hash values.

```rb
div(data: { _: "root", controller: "copy" })
```

```html
<div data="root" data-controller="copy"></div>
```
@willcosgrove willcosgrove requested a review from joeldrapper April 4, 2025 17:59
@willcosgrove willcosgrove marked this pull request as ready for review April 4, 2025 17:59
@joeldrapper joeldrapper merged commit 7310b9a into main Apr 4, 2025
13 checks passed
@joeldrapper joeldrapper deleted the root-hash-attributes branch April 4, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support root hash property with flattened hash attributes
2 participants
0