handlebars-rust icon indicating copy to clipboard operation
handlebars-rust copied to clipboard

Problems with partials after updating from 4.3.3 to 6.3.2

Open Weasy666 opened this issue 1 month ago • 2 comments

I've taken over a project in our company, which wasn't maintained in quite a while, so i have updated the used handlebars version from 4.3.3 to 6.3.2.
It was pretty painless code wise,, so thanks for that. 🙂

But partials are kinda broken for us right now.

A template looking similar to this

{{#if some_condition }}
    {{> some_partial }}
{{/if}}

works fine in version 4.3.3, but breaks in 6.3.2 with a Partial not found @partial-block error.

But if we change it to a partial block, then it works fine.

{{#if some_condition }}
    {{#> some_partial }}
    {{/some_partial }}
{{/if}}

Nothing was changed in our code in regard to registering partials. I'm pretty new to handlebars and am not sure what's going on here. Is this a bug?

Weasy666 avatar Nov 12 '25 14:11 Weasy666

hello @Weasy666 , this is a known issue with nested @partial-block. The implementation of nested @partial-block has been incorrect in our 6.x and in 6.3.2 I tried to fix it but still haven't finished it.

I'm aware of this but I'm just too busy to look into it these days.

sunng87 avatar Nov 12 '25 15:11 sunng87

Ah... ok. Thanks for the quick answer. 🙂 I don't know if it's helpful, i also tried with version 5 and that too is broken for us.

Do you have a hunch on what is broken and would be something a first time contributor possibly fix?

Weasy666 avatar Nov 12 '25 15:11 Weasy666