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
To clarify things I looked though the ember docs, but array access by index is not mentioned.
Research in the prettier glimmer/ember-template-lint space resulted in the following statements:
.[index] syntax is invalid (but works)
.[index] syntax is bad practise
.index syntax is invalid and does not work
So the question remains: What is valid/invalid/bad/deprecated glimmer handlebars template syntax? What we are really missing here is a proper glimmer handlebars template syntax specification.
The text was updated successfully, but these errors were encountered:
fpauser
changed the title
Glimmer/Handlebars: Valid glimmer template syntax (array access by array index)
Glimmer/Handlebars: Valid glimmer template syntax (array access by index)
Apr 30, 2021
fpauser
changed the title
Glimmer/Handlebars: Valid glimmer template syntax (array access by index)
Glimmer/Handlebars: Clarify glimmer handlebars template syntax (array access by index)
Apr 30, 2021
In a project (ember-3.16) I just came across the following snippet:
This works so far, but formatting this thing with the vsc plugin
Prettier for handlebars
got mewhich no longer works and triggers a parse error.
To clarify things I looked though the ember docs, but array access by index is not mentioned.
Research in the prettier glimmer/ember-template-lint space resulted in the following statements:
.[index]
syntax is invalid (but works).[index]
syntax is bad practise.index
syntax is invalid and does not workSo the question remains: What is valid/invalid/bad/deprecated glimmer handlebars template syntax? What we are really missing here is a proper glimmer handlebars template syntax specification.
The text was updated successfully, but these errors were encountered: