Skip to content

Qute: consider renaming one form of with to let #8749

@FroMage

Description

@FroMage

This is a with:

{#with item.parent}
  <h1>{name}</h1>  
  <p>{description}</p> 
{/with}

It changes the default scope.

This form, however, should be called let:

{#with item.parent as myParent} 
  <h1>{myParent.name}</h1>
{/with}

There's no equivalent to this form in JS or VB, both of which support with. Perhaps we could event support the following form?

{#let item.parent as myParent,
  item.count() as count} 
  <h1>{count}: {myParent.name}</h1>
{/let}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions