Replace built-in helpers
Opened this issue · 0 comments
cloudfy commented
How to replace built-in block helpers ex. #if. Tried the following:
var config = new HandlebarsConfiguration()
{
};
config.BlockHelpers.AddOrReplace("if", new IfHelper());
_handlebars = Handlebars.Create(config);
_handlebars.Configuration.BlockHelpers.AddOrReplace("if", new IfHelper());
does not work as it seems the default handler factory is loaded later and not respecting this.