ActiveCampaign / mustachio

Lightweight, powerful, flavorful, template engine.
MIT License
207 stars 17 forks source link

When Inverted Group is used, inferred model produces misleading result. #1

Closed atheken closed 8 months ago

atheken commented 9 years ago

Pretty minor, but when an Inverted Group is used, such as:

{{^name}}No Name{{/name}}

The inferred model becomes:

{
    "name" : { }
}

And it really should be:

{ 
    "name" : "name_Value"
}