HTMLBars iteration syntax


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.

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


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

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.