creationix / haml-js

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

attributes set to empty string are ignored #63

Open jaredatron opened 12 years ago

jaredatron commented 12 years ago

%a{href:""} Empty Link

should generate

Empty Link

instead it generates

Empty Link

empty values for attributes should not be ignored.

thanks

mattymess commented 10 years ago

Did you ever find a solution to this? I'm having the same issue

tomykaira commented 9 years ago

:+1: and tj's edition has the same issue. My workaround is to place some text like _REPLACE_ME_IN_COMPILATION_ and replace it compilation (node server, gulp, etc.)

andresilveirah commented 9 years ago

I believe this is a Haml issue instead of haml-js. I'm having the same problem but I'm using a gem for ruby on rails "haml-rails" and the problem remains the same.