wycats/handlebars.js — Issue #150: Inverted sections get duplicated
Author: leonid-shevtsov
Created: 2011-12-01 13:45:29+00:00
State: open

I'm not sure if this is the expected behavior which is just not consistent with Mustache, or a bug.

When you have an inverted section and a simple section in your template, and the inverted section should be shown (because the variable is false), the inverted section gets rendered twice: where its' defined, plus in place of the normal section.

Expected behavior: the inverted section gets rendered once.

See http://jsfiddle.net/GpJCa/2/ for a set of examples.