Skip to content

Partial parameters should have precedence over parent context #495

@njust

Description

@njust

With a template like this

{{~#*inline "displayName"~}}
    Template:{{name}}
{{/inline}}

{{#each data as |name|}}
    Name:{{name}}
    {{>displayName name="aaaa"}}
{{/each}}

And the data

{
    "data": ["hudel", "test"]
}

The expected output is:

Name:hudel
Template:aaaa

Name:test
Template:aaaa

But with version 4.2.1 the output is:

Name:hudel
Template:hudel
Name:test
Template:test

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions