Skip to content

Instantly share code, notes, and snippets.

@quinn
Created April 9, 2009 21:04
Show Gist options
  • Save quinn/92733 to your computer and use it in GitHub Desktop.
Save quinn/92733 to your computer and use it in GitHub Desktop.
Dir.glob('./**/*.erb').each do |dir|
new_dir = dir.sub( File.basename(dir), File.basename(dir).sub(/.erb$/, '.haml'))
`html2haml #{dir} #{new_dir}`
`rm #{dir}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment