Created
December 2, 2016 00:10
-
-
Save phensalves/4c932b2ca4344e7ed5a9b71c910c637c to your computer and use it in GitHub Desktop.
script to convert erb to haml using html2haml gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in app/views/**/*.erb; do html2haml -e $file ${file%erb}haml && rm $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment