Skip to content

Conditional block does not work within a partial #459

Description

@sebasijan

Describe the bug

I have the following partial registered

var partialSource = "{{#if ClientCode}}IT EXISTS{{else}}IT IS NOT HERE{{/if}}";
Handlebars.RegisterTemplate("LinkToCompany", partialSource);

And I pass in my entity

{
    ClientCode = "TEST"
}

with this template

{{> LinkToCompany Entity}}

Expected behavior:

I expect that to render as IT EXISTS, since the entity contains a ClientCode property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions