slim icon indicating copy to clipboard operation
slim copied to clipboard

Problem with slim template, but it works fine in erb

Open alec-c4 opened this issue 5 years ago • 5 comments

Hi! I've found very strange behaviour of slim templates. After conversion some of html/erb pages to slim - it looks terrible. As an example you can try to convert https://github.com/tailwindtoolbox/Nordic-Store/blob/master/index.html to slim (using erb2slim utility from html2slim gem or any other tool) and compare result with original source, looks different

alec-c4 avatar Dec 27 '19 22:12 alec-c4

Is there any utility to convert slim back to erb?

alec-c4 avatar Dec 27 '19 22:12 alec-c4

I think it is because of using colon in tailwind.css, am I right? If yes - is it possible to use colon in slim?

alec-c4 avatar Dec 27 '19 22:12 alec-c4

@alec-c4 I have a PR open to add tailwind support here: #841

thewatts avatar Mar 21 '20 13:03 thewatts

@thewatts AWESOME!!! Thanks a lot!

alec-c4 avatar Mar 22 '20 20:03 alec-c4

@thewatts I'll have this merged soon. I'd like to get some of the warnings addressed with the tests first if possible.

stonean avatar Mar 22 '20 20:03 stonean

It seems this has been resolved since #841 was merged?

minad avatar Jan 01 '23 12:01 minad