Luminus
3/29/2015 - 9:54 PM

Convert all .erb files in your rails app to .slim

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'