creationix / haml-js

Haml ported to server-side Javascript. This is a traditional server-side templating language. Tested with node-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

attributes set to empty string are ignored

jaredatron opened this issue · comments

%a{href:""} Empty Link

should generate

Empty Link

instead it generates

Empty Link

empty values for attributes should not be ignored.

thanks

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

👍 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.)

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.