Skip to content

Hash arguments for inline paritals #560

@zanejgr

Description

@zanejgr

Is your feature request related to a problem? Please describe.
When attempting to define a partial, e.g. {{#*inline "my_partial" arg}}{{arg}}{{/inline}}, a runtime exception is raised:
HandlebarsDotNet.HandlebarsRuntimeException: {{*inline}} helper must have exactly one argument

Describe the solution you'd like
Hash arguments for inline partials should be supported, as they are in Handlebarsjs

Describe alternatives you've considered
Registering compiled partials, which is impractical for some situations

Is your feature request supported by Handlebarsjs? Please provide details.
Yes, see
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions