Skip to content

Commit

Permalink
add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescdavis committed Dec 1, 2022
1 parent 773eb07 commit 299bb7b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions changelog_unreleased/handlebars/13930.md
@@ -0,0 +1,42 @@
#### Allow custom "else if"-like blocks with block params (#13930 by @jamescdavis)

#13507 added support for custom block keywords used with `else`, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.

<!-- prettier-ignore -->
```hbs
{{! Input }}
{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier stable }}
{{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
{{! Prettier main }}
{#when isAtWork as |work|}}
Ship that
{{work}}!
{{else when isReading as |book|}}
You can finish
{{book}}
eventually...
{{else}}
Go to bed!
{{/when}}
```

0 comments on commit 299bb7b

Please sign in to comment.