Skip to content

Instantly share code, notes, and snippets.

@JobV
Created May 24, 2013 09:31
Show Gist options
  • Save JobV/5642392 to your computer and use it in GitHub Desktop.
Save JobV/5642392 to your computer and use it in GitHub Desktop.
Convert all found .erb files to .haml
find . -name '*erb' | \
xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | \
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment