Skip to content

Root level for loop is not allowed #31

@uguraslan

Description

@uguraslan

When a for loop is used in the root level tag in Blits templates, it would be nice to display a hint/error about the problem.

The following pattern is not allowed:

  <Element :for="item in $items">
    <Text content="$item.name" />
  </Element>

ref: lightning-js/blits#288

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions