creationix / haml-js

Haml ported to server-side Javascript. This is a traditional server-side templating language. Tested with node-js
MIT License
900 stars 109 forks source link

Literal Arrays in :each statements don't work #9

Closed pjb3 closed 14 years ago

pjb3 commented 14 years ago

This doesn't compile the each expression into a function

haml.compile(":each n in [1, 2, 3]\n  = n")

this does:

haml.compile("- ns = [1, 2, 3]\n:each n in ns\n  = n")
creationix commented 14 years ago

Fixed in 936171391dda1a173827012f69cd259b9d2b719c. Thanks for the suggestion.