Non-list or non-bool sections #12

Closed
akaspin opened this Issue Jan 31, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@akaspin
Contributor

akaspin commented Jan 31, 2012

It's not described in docs, but mentioned in specs and works on 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)

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

@lymar lymar closed this Feb 3, 2012

@lymar lymar reopened this Feb 3, 2012

@lymar

This comment has been minimized.

Show comment
Hide comment
@lymar

lymar Feb 3, 2012

Owner

Thanks for report! Fixed in v0.3.3.
New test case: https://github.com/lymar/hastache/blob/v0.3.3/tests/test.hs#L71L123

Owner

lymar commented Feb 3, 2012

Thanks for report! Fixed in v0.3.3.
New test case: https://github.com/lymar/hastache/blob/v0.3.3/tests/test.hs#L71L123

@lymar lymar closed this Feb 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment