Skip to content

Instantly share code, notes, and snippets.

@costa
Created September 11, 2023 11:55
Show Gist options
  • Save costa/34067db15334e4676a44c446d94df53b to your computer and use it in GitHub Desktop.
Save costa/34067db15334e4676a44c446d94df53b to your computer and use it in GitHub Desktop.
HTML -> HAML one-liner
docker run --rm -v "`pwd`:`pwd`" -w "`pwd`" ruby bash -c 'gem install html2haml; find . -name "*.erb" | while read path; do html2haml "$path" "${path%erb}haml"; rm "$path"; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment