rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Introduce array and object literal syntax in templates

Open locks opened this issue 4 years ago • 3 comments

locks avatar May 01 '20 23:05 locks

Love this idea. We can mention that one possible implementation is to precompile to the array and hash helpers during that stage to eliminate any possible slowdown at runtime from adding to parsing.

Gaurav0 avatar May 07 '20 16:05 Gaurav0

may be related https://github.com/lifeart/ember-eval-helper#ember-eval-helper especially, for cases like:

{{#let (e "{ projectName: 'Ember' }") as |project|}}
  <h2 id="title">{{project.projectName}}</h2>
{{/let}}


{{#each (e "[1,2,3,4]") as |item|}}
    Number: {{item}}
{{/each}}

lifeart avatar May 08 '20 23:05 lifeart

@locks where does this stand?

wagenet avatar Jul 23 '22 23:07 wagenet