grunt-ember-handlebars
grunt-ember-handlebars copied to clipboard
Am i doing something wrong?
This is the code it generates:
this["Ember"] = this["Ember"] || {};
this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {};
this["Ember"]["TEMPLATES"]["assets/js/views/application.hbs"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '';
data.buffer.push("/* /templates/application.hbs\n*/\n<div class=\"main\">\n <h1>Hello World - Precompiled</h1>\n \n</div>");
return buffer;
});
this["Ember"]["TEMPLATES"]["assets/js/views/test.hbs"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
data.buffer.push("<div>\n <label>Name:</label>\n</div>\n<div class=\"text\">\n<h1>My name is and I want to learn Ember!</h1>\n</div>");
});
But the code fails because it lists the paths as the keys instead of the templatenames... am I doing something wrong or are there an option I need to enable within the build script?
Hi @Dechowmedia I'm sorry you've had trouble with this. I just marked this project as unmaintained and added a note to the readme.
I would recommend looking at https://github.com/dgeb/grunt-ember-templates which is more up to date and should be just as simple to integrate.