Permalink
Browse files

fix tests

  • Loading branch information...
1 parent b2f0862 commit 324a04f212c7e2295fdc689631f8e2a612ac6165 @tkellen tkellen committed Feb 18, 2013
@@ -3,11 +3,13 @@ define(['handlebars'], function(Handlebars) {
this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/amd.html"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<section class=\"main-app\">\n <h1>Some title</h1>\n <p>I've been compiled with amd support</p>\n</section>";});
+ return "<section class=\"main-app\">\n <h1>Some title</h1>\n <p>I've been compiled with amd support</p>\n</section>";
+ });
return this["JST"];
@@ -1,10 +1,12 @@
define(['handlebars'], function(Handlebars) {
return Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<section class=\"main-app\">\n <h1>Some title</h1>\n <p>I've been compiled with amd support</p>\n</section>";})
+ return "<section class=\"main-app\">\n <h1>Some title</h1>\n <p>I've been compiled with amd support</p>\n</section>";
+ })
});
@@ -3,26 +3,29 @@ var Handlebars = Handlebars || require('Handlebars');
this["JST"] = this["JST"] || {};
Handlebars.registerPartial("partial", Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<span>Canada</span>";}));
+ return "<span>Canada</span>";
+ }));
this["JST"]["test/fixtures/one.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
- var buffer = "", stack1, foundHelper, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
+ var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- foundHelper = helpers.name;
- if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{},data:data}); }
+ if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- buffer += escapeExpression(stack1) + ". I live in ";
- stack1 = depth0;
- stack1 = self.invokePartial(partials.partial, 'partial', stack1, helpers, partials, data);
+ buffer += escapeExpression(stack1)
+ + ". I live in ";
+ stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "</p>";
- return buffer;});
+ return buffer;
+ });
if (typeof exports === 'object' && exports) {module.exports = this["JST"];}
@@ -1,24 +1,27 @@
this["JST"] = this["JST"] || {};
Handlebars.registerPartial("partial", Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<span>Canada</span>";}));
+ return "<span>Canada</span>";
+ }));
this["JST"]["test/fixtures/one.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
- var buffer = "", stack1, foundHelper, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
+ var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- foundHelper = helpers.name;
- if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{},data:data}); }
+ if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- buffer += escapeExpression(stack1) + ". I live in ";
- stack1 = depth0;
- stack1 = self.invokePartial(partials.partial, 'partial', stack1, helpers, partials, data);
+ buffer += escapeExpression(stack1)
+ + ". I live in ";
+ stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "</p>";
- return buffer;});
+ return buffer;
+ });
@@ -1,24 +1,27 @@
this["JST"] = this["JST"] || {};
Handlebars.registerPartial("partial", Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<span>Canada</span>";}));
+ return "<span>Canada</span>";
+ }));
this["JST"]["test/fixtures/one.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
- var buffer = "", stack1, foundHelper, functionType="function", escapeExpression=this.escapeExpression, self=this;
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; partials = partials || Handlebars.partials; data = data || {};
+ var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this;
buffer += "<p>Hello, my name is ";
- foundHelper = helpers.name;
- if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{},data:data}); }
+ if (stack1 = helpers.name) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- buffer += escapeExpression(stack1) + ". I live in ";
- stack1 = depth0;
- stack1 = self.invokePartial(partials.partial, 'partial', stack1, helpers, partials, data);
+ buffer += escapeExpression(stack1)
+ + ". I live in ";
+ stack1 = self.invokePartial(partials.partial, 'partial', depth0, helpers, partials, data);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "</p>";
- return buffer;});
+ return buffer;
+ });
@@ -1,6 +1,8 @@
Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "Basic template that does nothing.";})
+ return "Basic template that does nothing.";
+ })
@@ -3,8 +3,10 @@ this["MyApp"]["JST"] = this["MyApp"]["JST"] || {};
this["MyApp"]["JST"]["Main"] = this["MyApp"]["JST"]["Main"] || {};
this["MyApp"]["JST"]["Main"]["test/fixtures/basic.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "Basic template that does nothing.";});
+ return "Basic template that does nothing.";
+ });
@@ -3,8 +3,10 @@ this["MyApp"]["JST"] = this["MyApp"]["JST"] || {};
this["MyApp"]["JST"]["Main"] = this["MyApp"]["JST"]["Main"] || {};
this["MyApp"]["JST"]["Main"]["test/fixtures/basic.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "Basic template that does nothing.";});
+ return "Basic template that does nothing.";
+ });
@@ -1,8 +1,10 @@
this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/has-spaces.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "<div>\n<span>this template has many spaces</span>\n</div>";});
+ return "<div>\n<span>this template has many spaces</span>\n</div>";
+ });
@@ -1,8 +1,10 @@
this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/it's-a-bad-filename.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
- helpers = helpers || Handlebars.helpers; data = data || {};
+ this.compilerInfo = [2,'>= 1.0.0-rc.3'];
+helpers = helpers || Handlebars.helpers; data = data || {};
- return "Why would you name your file like this?";});
+ return "Why would you name your file like this?";
+ });

0 comments on commit 324a04f

Please sign in to comment.