Skip to content

Instantly share code, notes, and snippets.

@thisivan
Created December 13, 2009 15:48
Show Gist options
  • Save thisivan/255456 to your computer and use it in GitHub Desktop.
Save thisivan/255456 to your computer and use it in GitHub Desktop.
Convert from ERB to HAML
find ./app/views/comments/ -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