Skip to content

Instantly share code, notes, and snippets.

@samme
Forked from ebeigarts/gist:970898
Last active December 21, 2015 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samme/6311968 to your computer and use it in GitHub Desktop.
Save samme/6311968 to your computer and use it in GitHub Desktop.
Search directory & convert .html to .haml.
# gem install html2haml --prerelease
for f in $(find . -type f -name \*.html); do echo "$f -> $f.haml" && html2haml --ruby19-attributes $f > "$f.haml"; done
@samme
Copy link
Author

samme commented Aug 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment