Lookup partials when undefined
This commit is contained in:
@@ -39,6 +39,9 @@ export function template(templateSpec, env) {
|
|||||||
if (hash) {
|
if (hash) {
|
||||||
context = Utils.extend({}, context, hash);
|
context = Utils.extend({}, context, hash);
|
||||||
}
|
}
|
||||||
|
if (!partial) {
|
||||||
|
partial = partials[name];
|
||||||
|
}
|
||||||
|
|
||||||
var result = env.VM.invokePartial.call(this, partial, name, context, helpers, partials, data, depths);
|
var result = env.VM.invokePartial.call(this, partial, name, context, helpers, partials, data, depths);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user