Skip to content

Instantly share code, notes, and snippets.

@mihs
Created December 19, 2014 16:27
Show Gist options
  • Save mihs/fbd9fef145e1098e607f to your computer and use it in GitHub Desktop.
Save mihs/fbd9fef145e1098e607f to your computer and use it in GitHub Desktop.
convert all views from haml to erb in a rails directory using herbalizer
find -L . -name *.html.haml -exec bash -c 'herbalizer {} | tee `echo {} | sed s/haml$/erb/`' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment