Lookup partials when undefined

This commit is contained in:
kpdecker
2014-11-25 23:14:22 -06:00
parent d044a8c99d
commit 617dd57162
+3
View File
@@ -39,6 +39,9 @@ export function template(templateSpec, env) {
if (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);