HTMLBars iteration syntax


#1

I’m setting up an initial render benchmark for a few view engines and would like to include HTMLBars. However, I’ve run into an issue that is not immediately visible to me. Specifically the syntax: {{#each items}}, where items is an array is throwing an unexpected token error.

http://jsfiddle.net/6cxa6eh5/1/

Note: Completely aware HTMLBars is in development, just curious.


#2

There is an HTMLBars branch that has been rebased several times onto Ember master:

https://github.com/emberjs/ember.js/tree/htmlbars

You might have some success with it. Much of the remaining work we must complete for HTMLBars is in re-writing the helpers used in most Ember applications. Something like {{#each must be ported from Handlebars to HTMLBars.

The fewer helpers you are using the greater the chance for success you might have. Using HTMLBars is definitely not trivial today, or workable like a normal Ember application.