Skip to content

Instantly share code, notes, and snippets.

@kch
Created May 22, 2010 12:50
Show Gist options
  • Save kch/410051 to your computer and use it in GitHub Desktop.
Save kch/410051 to your computer and use it in GitHub Desktop.
convert all erb html templates to haml
find app/views -name '*.html.erb' |
perl -pe 's/\.erb$//' |
xargs -I @ html2haml --erb @.erb @.haml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment