Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work partial context #643

Open
whiskeycola opened this issue Jun 6, 2024 · 0 comments
Open

Not work partial context #643

whiskeycola opened this issue Jun 6, 2024 · 0 comments

Comments

@whiskeycola
Copy link

whiskeycola commented Jun 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant