I have a scenario where I need to dynamically compile Handlebars templates using ember-cli.
Ember.Handlebars.compile(someString);
I have included the full version of handlebars in Brocfile:
var app = new EmberApp({
vendorFiles: {
'handlebars.js': {
production: 'bower_components/handlebars/handlebars.js'
}
}
});
but am getting the following error:
TypeError: undefined is not a function
What am i doing wrong?
Aucun commentaire:
Enregistrer un commentaire