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?
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
works fine in version 4.3.3, but breaks in 6.3.2 with a
Partial not found @partial-blockerror.But if we change it to a partial block, then it works fine.
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?