Skip to content

Replace built-in helpers #596

@cloudfy

Description

@cloudfy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions