bracket 0.5.6

Fast and correct handlebars-compatible template engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# {{title}}

The `each` helper can be used to iterate arrays or objects; when iterating an array we can access the `@index` local variable:

```text
{{~#each list}}
Item: {{this}}, Index: {{@index}}, First: {{@first}}, Last: {{@last}}
{{~/each}}
```

When we iterate objects we can also access the `@key` field:

```text
{{~#each map}}
{{@key}} = {{this}}, Index: {{@index}}, First: {{@first}}, Last: {{@last}}
{{~/each}}
```