Permalink
Browse files

bump to handlebars 1.3

  • Loading branch information...
1 parent 878b004 commit ce1f553a7efe263d8834e07d101904a78d856c1b @tkellen tkellen committed Mar 3, 2014
View
@@ -27,7 +27,7 @@
"test": "grunt test"
},
"dependencies": {
- "handlebars": "~1.1.2",
+ "handlebars": "~1.3.0",
"grunt-lib-contrib": "~0.5.1",
"chalk": "~0.4.0"
},
@@ -12,12 +12,12 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
this["JST"]["test/fixtures/one.hbs"] = function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {};
- var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = (depth0 && depth0.name); stack1 = typeof stack1 === functionType ? stack1.call(depth0, {hash:{},data:data}) : stack1; }
+ if (helper = helpers.name) { stack1 = helper.call(depth0, {hash:{},data:data}); }
+ else { helper = (depth0 && depth0.name); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ ". I live in ";
stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
@@ -3,7 +3,7 @@ this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/uses_helpers.hbs"] = 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, options, escapeExpression=this.escapeExpression, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing;
+ var buffer = "", stack1, helper, options, escapeExpression=this.escapeExpression, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing;
function program1(depth0,data) {
@@ -14,10 +14,10 @@ function program1(depth0,data) {
buffer += "This template uses custom helpers: "
+ escapeExpression(helpers['my-helper'].call(depth0, "variable", {hash:{},data:data}))
+ " & ";
- options = {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data};
- if (stack1 = helpers['another-helper']) { stack1 = stack1.call(depth0, options); }
- else { stack1 = (depth0 && depth0['another-helper']); stack1 = typeof stack1 === functionType ? stack1.call(depth0, options) : stack1; }
- if (!helpers['another-helper']) { stack1 = blockHelperMissing.call(depth0, stack1, options); }
+ options={hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}
+ if (helper = helpers['another-helper']) { stack1 = helper.call(depth0, options); }
+ else { helper = (depth0 && depth0['another-helper']); stack1 = typeof helper === functionType ? helper.call(depth0, options) : helper; }
+ if (!helpers['another-helper']) { stack1 = blockHelperMissing.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); }
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "!\n";
return buffer;
@@ -12,12 +12,12 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
this["JST"]["test/fixtures/one.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {};
- var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = (depth0 && depth0.name); stack1 = typeof stack1 === functionType ? stack1.call(depth0, {hash:{},data:data}) : stack1; }
+ if (helper = helpers.name) { stack1 = helper.call(depth0, {hash:{},data:data}); }
+ else { helper = (depth0 && depth0.name); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ ". I live in ";
stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
@@ -12,12 +12,12 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
this["JST"]["test/fixtures/one.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); partials = this.merge(partials, Handlebars.partials); data = data || {};
- var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = (depth0 && depth0.name); stack1 = typeof stack1 === functionType ? stack1.call(depth0, {hash:{},data:data}) : stack1; }
+ if (helper = helpers.name) { stack1 = helper.call(depth0, {hash:{},data:data}); }
+ else { helper = (depth0 && depth0.name); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; }
buffer += escapeExpression(stack1)
+ ". I live in ";
stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
@@ -3,23 +3,22 @@ this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/uses_helpers.hbs"] = 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, stack2, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing;
+ var buffer = "", stack1, helper, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this, functionType="function", blockHelperMissing=helpers.blockHelperMissing;
function program1(depth0,data) {
var buffer = "";
return buffer;
}
- buffer += "This template uses custom helpers: ";
- options = {hash:{},data:data};
- buffer += escapeExpression(((stack1 = helpers['my-helper'] || (depth0 && depth0['my-helper'])),stack1 ? stack1.call(depth0, "variable", options) : helperMissing.call(depth0, "my-helper", "variable", options)))
+ buffer += "This template uses custom helpers: "
+ + escapeExpression((helper = helpers['my-helper'] || (depth0 && depth0['my-helper']),options={hash:{},data:data},helper ? helper.call(depth0, "variable", options) : helperMissing.call(depth0, "my-helper", "variable", options)))
+ " & ";
- options = {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data};
- if (stack2 = helpers['another-helper']) { stack2 = stack2.call(depth0, options); }
- else { stack2 = (depth0 && depth0['another-helper']); stack2 = typeof stack2 === functionType ? stack2.call(depth0, options) : stack2; }
- if (!helpers['another-helper']) { stack2 = blockHelperMissing.call(depth0, stack2, options); }
- if(stack2 || stack2 === 0) { buffer += stack2; }
+ options={hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}
+ if (helper = helpers['another-helper']) { stack1 = helper.call(depth0, options); }
+ else { helper = (depth0 && depth0['another-helper']); stack1 = typeof helper === functionType ? helper.call(depth0, options) : helper; }
+ if (!helpers['another-helper']) { stack1 = blockHelperMissing.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); }
+ if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "!\n";
return buffer;
});

0 comments on commit ce1f553

Please sign in to comment.