Skip to content

Instantly share code, notes, and snippets.

@obskein
Forked from ebeigarts/gist:970898
Created November 7, 2018 19:45
Show Gist options
  • Save obskein/dad189dd23d6f8499b7d66b70dd8f3c4 to your computer and use it in GitHub Desktop.
Save obskein/dad189dd23d6f8499b7d66b70dd8f3c4 to your computer and use it in GitHub Desktop.
html2haml recursive
for f in `find . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment