Skip to content

Commit

Permalink
Merge pull request #462 from Sergeant61/patch-1
Browse files Browse the repository at this point in the history
Update spacebars.md
  • Loading branch information
jankapunkt authored Aug 9, 2024
2 parents 3c80ac2 + b3cada6 commit 0856ca8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site/source/guide/spacebars.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@ The `{% raw %}{{#if}}{% endraw %}` and `{% raw %}{{#unless}}{% endraw %}` helper
{{/if}}
```

```html
{{#if condition1}}
<p>It's condition1 true</p>
{{else if condition2}}
<p>It's condition2 true</p>
{{else}}
<p>It's false</p>
{{/if}}
```

### Each-in

The `{% raw %}{{#each .. in}}{% endraw %}` helper is a convenient way to step over a list while retaining the outer data context.
Expand Down

0 comments on commit 0856ca8

Please sign in to comment.