Created
April 20, 2019 15:34
-
-
Save vijayanandnandam/4b8feabece5d5fe15aa0db4f02598895 to your computer and use it in GitHub Desktop.
Convert Recursiverly ERB to haml
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
| # install html2 haml gem then run in the directory to convert erb haml files | |
| # You have to delete erb files your self after checking if everything is ok.. | |
| for file in $(find . -type f -name \*.html.erb); do | |
| html2haml -e ${file} "$(dirname ${file})/$(basename ${file} .erb).haml"; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment