Skip to content

Extend the handlers with an direct access to @root over their parameters #322

@GitHub-TC

Description

@GitHub-TC
  • public delegate void HandlebarsHelper (TextWriter output, object root, dynamic context, params object[] arguments);
  • public delegate void HandlebarsBlockHelper(TextWriter output, object root, HelperOptions options, dynamic context, params object[] arguments);

I used this to access the main data structure from the calling in the handler functions. Before this, the data structure have to be "public static" or the scripts must have an weird @root parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions