Skip to content
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

Handling of <template> elements #37

Open
lowlighter opened this issue Oct 26, 2024 · 0 comments
Open

Handling of <template> elements #37

lowlighter opened this issue Oct 26, 2024 · 0 comments
Labels
scope: if spec Spec definition for non-well defined behaviors
Milestone

Comments

@lowlighter
Copy link
Owner

lowlighter commented Oct 26, 2024

Scope

if

What do you want to define?

mizu should probably treats <template> as a group block, similarly to how v-if handles it

<template *if="true">
  <p></p>
  <p></p>
</template>

Since *else and *empty relies internally on *if, this behaviour would be shared between all of these directives.

Side note: using <template style="display: contents"> unfortunately doesn't work

Interaction with *else may be harder, we need to keep track of "appeared" elements

I have searched for existing issues

Yes

@lowlighter lowlighter added this to the future milestone Oct 26, 2024
@lowlighter lowlighter added the spec Spec definition for non-well defined behaviors label Oct 29, 2024
@lowlighter lowlighter changed the title if/else/empty: handling of <template> Handling of <template> in *if/*else Oct 29, 2024
@lowlighter lowlighter changed the title Handling of <template> in *if/*else Handling of <template> elements Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: if spec Spec definition for non-well defined behaviors
Projects
None yet
Development

No branches or pull requests

1 participant