twigkit/tempo — pull request #47 by romangarcia (2012-05-08 21:25:04+00:00)
Title: Alternative DATA-IF syntax

We added an alternative/simple syntax for data-if
It evaluates the value of the data-if attribute under the current context.
Please, let us know if this is the right approach, or if there's anything else we could improve.

The reason we added this feature, is because under some not-yet-understood circumpstances, a mixed-case model was being compared against a lower-case text produced by the browser (our guess)

Example:

data-if-userAge="30"

was being translated (by some browsers, we guess) into:

data-if-userage="30"