dfjwma
Last Updated: March 02, 2016
·
305
· tmartin314

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>