Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created May 19, 2011 15:24
Show Gist options
  • 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