I need to convert the html.slim files in my Ruby on Rails application to html.erb. Is there any easy way to do it? I tried many options listed in Stack Overflow and other sites. But nothing worked for me. I found a converter http://slim2html.raving.systems/ and a html to slim converter http://html2slim.herokuapp.com/ . It is not of my use since it does not work the other way around. Should I have to do it manually? Please help.
First, make sure you have already installed
slim-rails. You can install it by calling
gem install slim-rails.
Then write something in the
Finally, you open the terminal and call:
echo `slimrb input.html` > output.html
NOTE: it is
output.html, that's what you looking for!