Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handling of <template> elements #37

@lowlighter

Description

@lowlighter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: ifspecSpec definition for non-well defined behaviors

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions