-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/quteThe template engineThe template enginekind/enhancementNew feature or requestNew feature or request
Milestone
Description
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
area/quteThe template engineThe template enginekind/enhancementNew feature or requestNew feature or request