Skip to content

Commit

Permalink
Updating handlebars and other dependencies for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
martoon committed May 18, 2015
1 parent 4acc878 commit 4ca641c
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 80 deletions.
24 changes: 10 additions & 14 deletions test/fixtures/output/beauty/alpha.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
YUI.add("template-alpha", function (Y) {
Y.namespace("Template")["alpha"] = Y.Handlebars.template(function (Handlebars, depth0, helpers, partials, data) {
this.compilerInfo = [ 4, ">= 1.0.0" ];
helpers = this.merge(helpers, Handlebars.helpers);
data = data || {};
var buffer = "", stack1, functionType = "function", escapeExpression = this.escapeExpression;
if (stack1 = helpers.alpha) {
stack1 = stack1.call(depth0, {
Y.namespace("Template")["alpha"] = Y.Handlebars.template({
compiler: [ 6, ">= 2.0.0-beta.1" ],
main: function (depth0, helpers, partials, data) {
var helper, functionType = "function", helperMissing = helpers.helperMissing, escapeExpression = this.escapeExpression;
return escapeExpression((helper = (helper = helpers.alpha || (depth0 != null ? depth0.alpha : depth0)) != null ? helper : helperMissing,
typeof helper === functionType ? helper.call(depth0, {
name: "alpha",
hash: {},
data: data
});
} else {
stack1 = depth0.alpha;
stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1;
}
buffer += escapeExpression(stack1) + "\n";
return buffer;
}) : helper)) + "\n";
},
useData: true
});
}, "@VERSION@", {
requires: [ "handlebars-base" ]
Expand Down
15 changes: 4 additions & 11 deletions test/fixtures/output/module/alpha.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
YUI.add("template-alpha", function (Y) {
Y.namespace("Template")["alpha"] = Y.Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.alpha) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.alpha; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
Y.namespace("Template")["alpha"] = Y.Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.alpha || (depth0 != null ? depth0.alpha : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"alpha","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
});
},"useData":true});
}, "@VERSION@", { "requires": ["handlebars-base"] });
15 changes: 4 additions & 11 deletions test/fixtures/output/module/beta.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
YUI.add("template-beta", function (Y) {
Y.namespace("Template")["beta"] = Y.Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.beta) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.beta; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
Y.namespace("Template")["beta"] = Y.Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.beta || (depth0 != null ? depth0.beta : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"beta","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
});
},"useData":true});
}, "@VERSION@", { "requires": ["handlebars-base"] });
15 changes: 4 additions & 11 deletions test/fixtures/output/module/gamma.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
YUI.add("template-gamma", function (Y) {
Y.namespace("Template")["gamma"] = Y.Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.gamma) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.gamma; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
Y.namespace("Template")["gamma"] = Y.Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.gamma || (depth0 != null ? depth0.gamma : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"gamma","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
});
},"useData":true});
}, "@VERSION@", { "requires": ["handlebars-base"] });
15 changes: 4 additions & 11 deletions test/fixtures/output/simple/alpha.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.alpha) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.alpha; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
{"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.alpha || (depth0 != null ? depth0.alpha : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"alpha","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
}
},"useData":true}
16 changes: 5 additions & 11 deletions test/fixtures/output/simple/beta.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.beta) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.beta; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
{"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.beta || (depth0 != null ? depth0.beta : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"beta","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
}
},"useData":true}

16 changes: 5 additions & 11 deletions test/fixtures/output/simple/gamma.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;


if (stack1 = helpers.gamma) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.gamma; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
buffer += escapeExpression(stack1)
{"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return escapeExpression(((helper = (helper = helpers.gamma || (depth0 != null ? depth0.gamma : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"gamma","hash":{},"data":data}) : helper)))
+ "\n";
return buffer;
}
},"useData":true}

0 comments on commit 4ca641c

Please sign in to comment.