Skip to content

Not work partial context #643

@whiskeycola

Description

@whiskeycola

Incorrect behavior of partial context.
template.hbs

{{> partial "hello world"}}

partial.hbs

{{ this }}

result [object] but expected hello world
This also doesn't work if you pass any variable from a shared context to a partial, then the partial will have the same context as the calling template.
handlebars version 5.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions