ActiveCampaign/mustachio

Templating fails if there is a not clause

Closed this issue · 1 comments

If my template is :

    Hi, your name is {{name}}
    {{^name}} hidden from everyone{{/name}}

It works when the object passed in is {{ "name": null }} (as in, it renders 'Hi, your name is hidden from everyone')

But if I pass in {{ "name": "bob" }} it renders nothing

I get similar results with

Hi, your name is
{{#name}} {{.}} {{/name}}
{{^name}} hidden from everyone{{/name}}

this was only in preview, in production it works