Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/guide/builtin-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ The first and last steps of iteration are noted via the [`@first`](../api-refere
Nested `each` blocks may access the iteration variables via depth based paths. To access the parent index, for example,
`{{@../index}}` can be used.

When the current item is itself an array, use
[segment-literal notation](expressions.md#literal-segments) to read a fixed index. Plain `this[0]` is not valid
Handlebars syntax; write `this.[0]` instead:

```handlebars
<ul class="tuples">
{{#each tuple}}
<li>{{this.[0]}} {{this.[1]}}</li>
{{/each}}
</ul>
```

:::

## #with
Expand Down