ActiveCampaign / mustachio

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

When Inverted Group is used, interpolation is ignored in that scope. #2

Closed atheken closed 9 years ago

atheken commented 9 years ago

Model:

{
  "not_here" : false,
  "placeholder" : "this value should appear when not_here is falsey"
}

Template:

{{^not_here}}{{../placeholder}}{{/not_here}}

Expected Result:

this value should appear when not_here is falsey
atheken commented 9 years ago

This was a false negative, Mustachio handles this case correctly.