@behance/hogan-compiler
Advanced tools
Comparing version 3.0.4 to 3.0.5
{ | ||
"name": "@behance/hogan-compiler", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Behance Hogan Compiler", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -57,3 +57,3 @@ const Hogan = require('@behance/hogan.js'); | ||
const partial = template.partials[id]; | ||
if (compiledTemplates[partial.name] || partials[partial.name]) { return; } | ||
if (compiledTemplates[partial.name]) { return; } | ||
partials[partial.name] = partial; | ||
@@ -60,0 +60,0 @@ this._recursivelyGetPartialNames(partial, partials, partials); |
@@ -203,2 +203,9 @@ const Hogan = require('@behance/hogan.js'); | ||
}); | ||
it('should recurse inside partials with the same name when getting partial names', function() { | ||
return this.compiler.compile('partial_inside_sub_same_name/parent') | ||
.then((template) => { | ||
expect(template.render()).toEqual('partial_content\n'); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28168
36
343