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

compiling to deprecated handlebars #257

Closed Kallin closed 8 years ago

Kallin commented 8 years ago

I've pulling in emlem via ember-cli-emblem for my ember app, and am noticing the warning:

DEPRECATION: Using the '{{#each item in model}}' form of the {{#each}} helper ('test-app/templates/search/cards.hbs' @ L1:C23) is deprecated. Please use the block param form instead ('{{#each model as |item|}}'). See http://emberjs.com/guides/deprecations/#toc_code-in-code-syntax-for-code-each-code for more details.

from the ember template compiler. I believe the emblem files are translated to hbs files, and then the ember compiler is raising this warning. Does it seem like something to fix here? I could take a look and offer a PR if it's agreeable.

thec0keman commented 8 years ago

What does your emblem template look like?

= each model as |item| works in emblem currently. However, emblem will not compile = each item in model to the block param format.

Kallin commented 8 years ago

@thec0keman Ah that did it, sorry for being such a noob!

thec0keman commented 8 years ago

No worries, glad I could help :)