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 #39

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

Handling of <template> elements #39

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

Comments

@lowlighter
Copy link
Owner

lowlighter commented Oct 26, 2024

Scope

for

What do you want to define?

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

Example usage

<template *for="2">
  <p></p>
  <p></p>
</template>

The complexity probably comes from tracking generated elements (since we don't have a vdom and we don't really want to)

It is also unclears if $generated from *empty should count it as a single generated element or not

Needs to interacts nicely with #37

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 for: handling of <template> Handling of <template> in *for Oct 29, 2024
@lowlighter lowlighter changed the title Handling of <template> in *for 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: for spec Spec definition for non-well defined behaviors
Projects
None yet
Development

No branches or pull requests

1 participant