Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created May 19, 2011 15:24
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 boyvanamstel/981012 to your computer and use it in GitHub Desktop.
Save boyvanamstel/981012 to your computer and use it in GitHub Desktop.
Convert erb to haml
find . -name '*.html.erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | bash
find . -name "*.html.erb" -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment