-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow multiple elements in root with Fragments #118
Conversation
Does this work? html`
<div>
${() => {
return html`
<div>Hallo</div>
<div>Welt</div>
`
}()}
</div>
` Or do you have to move the contents of the fragment out of the fragment? |
@bcomnes Yes this should work. When doing |
I really like this 👍 |
@goto-bus-stop I've seen that you merged the |
yea a docs example would be nice! |
@goto-bus-stop I added a section for this. Tried to add a nice explanation, but couldn't come up with any. I think it works this way though. What do you think? |
This will allow
This will return a DocumentFragment with the children
<div>Hello</div>
and<div>Welt</div>
Also see choojs/hyperx#65
Depends on choojs/hyperx#66