Skip to content

Problems with partials after updating from 4.3.3 to 6.3.2 #726

@Weasy666

Description

@Weasy666

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?

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