You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[handlebars] correctly format custom "else if" blocks (#13507 by @jamescdavis)
A template transform can be used to create custom block keywords that behave similar to if. This updates printer-glimmer to correctly recognize and format the "else if" case when "if" is a custom keyword.
{{! Input }}{{#whenisAtWork}}
Ship that code!
{{else when isReading}}
You can finish War and Peace eventually...
{{else}}
Go to bed!
{{/when}}{{! Prettier stable }}{{#whenisAtWork}}
Ship that code!
{{else}}{{#whenisReading}}
You can finish War and Peace eventually...
{{else}}
Go to bed!
{{/when}}{{/when}}{{! Prettier main }}{{#whenisAtWork}}
Ship that code!
{{else when isReading}}
You can finish War and Peace eventually...
{{else}}
Go to bed!
{{/when}}