Files
test-repo/changelog_unreleased/handlebars/17856.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
458 B
Markdown
Raw Normal View History

#### Preserve `else if` syntax for custom helpers (#17856 by @kovsu)
<!-- prettier-ignore -->
```hbs
{{! Input }}
{{#animated-if this.foo}}
foo content
{{else if (this.bar)}}
bar content
{{/animated-if}}
{{! Prettier stable }}
{{#animated-if this.foo}}
foo content
{{else}}{{#if (this.bar)}}
bar content
{{/if}}{{/animated-if}}
{{! Prettier main }}
{{#animated-if this.foo}}
foo content
{{else if (this.bar)}}
bar content
{{/animated-if}}
```