Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Non-list or non-bool sections #12

Closed
akaspin opened this Issue · 1 comment

2 participants

@akaspin

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
@lymar lymar reopened this
@lymar
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

@lymar lymar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.