check "allowCallsToHelperMissing"

This commit is contained in:
Nils Knappmeier
2019-09-24 08:36:46 +02:00
parent a89081d440
commit d148d7cb1f
+3 -1
View File
@@ -97,7 +97,7 @@ Handlebars.VM.resolvePartial = <T>(partial: HandlebarsTemplateDelegate<T> | unde
// transform name.
options.name = name;
return originalResolvePartial(partial, context, options);
}
};
// #1544, allow custom helpers in knownHelpers
@@ -107,3 +107,5 @@ Handlebars.compile('test', {
customHelper: true
}
});
Handlebars.compile('test')({},{allowCallsToHelperMissing: true});