Rails convert ERB view files to Slim
You can simply use html2slim gem
gem install html2slim
This package includes a tool called erb2slim which can convert erb file to slim recursively. Option -d
for delete the erb file after the convert finished.
erb2slim -d <dir of your views>
Written by Troy Martin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#