Convert template spec to object literal

This allows for metadata to be associated with the template and a simplification of the template init logic.
This commit is contained in:
kpdecker
2014-01-19 17:32:25 -06:00
parent 8f07bbabea
commit 2812fe2775
4 changed files with 96 additions and 90 deletions
+2 -6
View File
@@ -1,11 +1,7 @@
define(['handlebars.runtime'], function(Handlebars) {
Handlebars = Handlebars["default"]; var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
return templates['empty'] = template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = this.initData(depth0, data);
return templates['empty'] = template({"compiler":[4,">= 1.0.0"],"main":function(depth0,helpers,partials,data) {
var buffer = "";
return buffer;
});
},"useData":true});
});