We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Research if partial attributes are possible and worth adding.
The text was updated successfully, but these errors were encountered:
It would need to be handled somewhere in the logic of sinuous/htm.
sinuous/htm
Currently htm does support partial attributes https://github.com/developit/htm/releases/tag/2.2.0 but they are concatenated. An observable, essentially a function, and a string can't be joined like that.
htm
The solution would be something like detect whether one part is an observable, wrap both parts in a closure.
html`<div class="margin${side}"></div>`
becomes
h('div', { class: () => 'margin' + side() })
Sorry, something went wrong.
95d6f61
h
luwes
No branches or pull requests
Research if partial attributes are possible and worth adding.
The text was updated successfully, but these errors were encountered: