Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.22k stars 213 forks source link

Hash arguments for inline paritals #560

Open zanejgr opened 8 months ago

zanejgr commented 8 months ago

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