Skip to content

Instantly share code, notes, and snippets.

@endSly
Created February 24, 2014 20:31
Show Gist options
  • Save endSly/9196415 to your computer and use it in GitHub Desktop.
Save endSly/9196415 to your computer and use it in GitHub Desktop.
Project Erb To Haml
find . -name '*erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | bash
find . -name '*erb' | xargs rm -rf ARGV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment