gem install html2haml for file in app/views/*/.erb; do html2haml -e $file ${file%erb}haml && rm $file; done