slim-template / haml2slim

Haml to Slim converter.
http://slim-lang.com/
120 stars 20 forks source link

Wrong output on string interpolation #7

Open panozzaj opened 12 years ago

panozzaj commented 12 years ago

Here's a simplified test case of what I am seeing:

%ul{:class => "simple-list#{' with-icon' if false}"}

->

ul{:class => "simple-list# ' with-icon' if false}"

I expected the output to be something like:

ul class="simple-list#{' with-icon' if icons}"

I am a new user of Slim, so I might be off on this. Meanwhile I changed the output to match what I expected. Thanks for your help!

marcalc commented 12 years ago

Can this be fixed? I have some 200 haml templates I would like to convert and this is the most common error I found.

HoneyryderChuck commented 11 years ago

same to me.