Convert all .erb files in your rails app to .slim
find ./app/views -name '*.erb' | xargs -I file sh -c \ 'html2haml --erb file | haml2slim > $(echo file | sed 's/erb/slim/') && \ rm file'