{{else if ...}}
is always incorrectly rewritten to use {{#if}}
which makes it unusable with {{#animated-if}}
#16285
Labels
lang:handlebars
Issues affecting Handlebars (Glimmer)
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 3.2.5
Playground link
Input:
Output:
Expected output:
Why?
There can be other statements with
{{else if ...}}
than{{#if}}
, like{{#animated-if}}
and{{#liquid-if}}
. They should not change:to force it to use
{{#if}}
:Using regular
{{#if}}
it works correctly:Input:
Output:
The text was updated successfully, but these errors were encountered: