machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Error using the new syntax "each XX as |YYY" #255

Closed friscoMad closed 8 years ago

friscoMad commented 8 years ago

I am unable to generate a correct result to use new each syntax as shown here: http://guides.emberjs.com/v2.1.0/templates/displaying-a-list-of-items/

each model as |card Does not work {#each model as |card} Also does not work

Probably there is some way to overcome this but I am unable to find it. I am using ember-cli-emblem but also have tried with http://bantic.github.io/try-emblem/ with the same results

thec0keman commented 8 years ago

= each model as |card| works for me. Are you including the closing pipe?

thec0keman commented 8 years ago

(Also, unfortunately the try-emblem site is a few versions of out date)

friscoMad commented 8 years ago

Ok using that sintaxis works without issues, what it is exactly that double pipe? I haven't seen it in the documentation.

thec0keman commented 8 years ago

It's Ember's block param syntax: http://emberjs.com/blog/2015/02/07/ember-1-10-0-released.html#toc_block-params