Skip to content

Commit

Permalink
check "allowCallsToHelperMissing"
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Sep 24, 2019
1 parent a89081d commit d148d7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -107,3 +107,5 @@ Handlebars.compile('test', {
customHelper: true
}
});

Handlebars.compile('test')({},{allowCallsToHelperMissing: true});

0 comments on commit d148d7c

Please sign in to comment.