lymar/hastache — Issue #12: Non-list or non-bool sections
Author: akaspin
Created: 2012-01-31 23:40:49+00:00
State: open

It's not described in [docs](http://mustache.github.com/mustache.5.html), but mentioned in [specs](https://github.com/mustache/spec/blob/master/specs/sections.yml#L27) and works on [demo](http://mustache.github.com/#demo).

Normal sections should render if value is:

* Non-empty list (ok)
* True (ok)
* Non-zero number (not works in hastache)
* Non-empty string (not works in hastache)
* Lambda (ok)

Inverted sections should render if value is:

* Empty list (ok)
* False (ok)
* Zero number (not works in hastache)
* Empty string (not works in hastache)
* Missing context (works with my [pull request](https://github.com/lymar/hastache/pull/11))

I think it is quite important because *Mustache* is logic-less.