abuiles / ember-cli-101-errata

18 stars 4 forks source link

Page 82 - htmlbars instead of handlebars #206

Closed rich-poole closed 9 years ago

rich-poole commented 9 years ago

Ember CLI defaults to htmlbars now, probably worth updating for this at some point :)

hashemi commented 9 years ago

Also note HTMLBars.makeBoundHelper is a little different than Handlebars, the correct code becomes:

export default Ember.HTMLBars.makeBoundHelper(function(params) {
  var date = params[0];
  var format = params[1];
  return formatDate(date, format);
});
NickChristensen commented 9 years ago

:+1: @AhmadH, this just tripped me up for a few minutes.