-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
290 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
... () { | ||
// Source: src[/test/resources/partials/level1/level1.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "<h1>I'm " | ||
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"level1") || (depth0 != null ? lookupProperty(depth0,"level1") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"level1","hash":{},"data":data,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":18}}}) : helper))) | ||
+ "</h1>"; | ||
},"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['level1/level1'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['level1/level1'] = template; | ||
|
||
|
||
// Source: src/test/resources/partials/partial/base.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "I'm the base partial\n" | ||
+ ((stack1 = container.invokePartial(lookupProperty(partials,"partial/partial"),depth0,{"name":"partial/partial","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : ""); | ||
},"usePartial":true,"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['partial/base'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['partial/base'] = template; | ||
|
||
|
||
// Source: src/test/resources/partials/partial/partial.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
return "I'm the child partial"; | ||
},"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['partial/partial'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['partial/partial'] = template; | ||
|
||
|
||
// Source: src/test/resources/partials/r]oot.html | ||
|
||
var temp... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
... () { | ||
// Source: src[\testesources\partials\level1\level1.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "<h1>I'm " | ||
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"level1") || (depth0 != null ? lookupProperty(depth0,"level1") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"level1","hash":{},"data":data,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":18}}}) : helper))) | ||
+ "</h1>"; | ||
},"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['level1/level1'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['level1/level1'] = template; | ||
|
||
|
||
// Source: src\testesources\partials\partial\base.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) { | ||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { | ||
return parent[propertyName]; | ||
} | ||
return undefined | ||
}; | ||
|
||
return "I'm the base partial\n" | ||
+ ((stack1 = container.invokePartial(lookupProperty(partials,"partial/partial"),depth0,{"name":"partial/partial","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : ""); | ||
},"usePartial":true,"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['partial/base'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['partial/base'] = template; | ||
|
||
|
||
// Source: src\testesources\partials\partial\partial.html | ||
|
||
var template = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { | ||
return "I'm the child partial"; | ||
},"useData":true}); | ||
var templates = Handlebars.templates = Handlebars.templates || {}; | ||
templates['partial/partial'] = template; | ||
var partials = Handlebars.partials = Handlebars.partials || {}; | ||
partials['partial/partial'] = template; | ||
|
||
|
||
// Source: src\testesources\partials]oot.html | ||
|
||
var temp... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.