sunng87 / handlebars-rust

Rust templating with Handlebars
MIT License
1.26k stars 137 forks source link

Not work partial context #643

Open whiskeycola opened 3 months ago

whiskeycola commented 3 months ago

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