tdumitrescu / virtual-jade

Compile Jade templates to Hyperscript for Virtual DOM libraries
Other
31 stars 4 forks source link

support for iteration over object key/value pairs and each/else #25

Closed tdumitrescu closed 7 years ago

tdumitrescu commented 7 years ago

fixes https://github.com/tdumitrescu/virtual-jade/issues/24

with bonus support for else blocks:

- var values = [];
ul
  each val in values
    li= val
  else
    li There are no values
coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling 3a5df15c3abeffc2bc1cc6a68bc9099739306e0a on each-object into on master.