Skip to content

Instantly share code, notes, and snippets.

@erikpukinskis
Created May 23, 2011 02:00
Show Gist options
  • Save erikpukinskis/986099 to your computer and use it in GitHub Desktop.
Save erikpukinskis/986099 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'fileutils'
Dir.foreach(FileUtils.pwd) do |f|
if f.match(/\.html\.erb$/)
new_name = f.gsub(/\.erb$/, ".haml")
`html2haml #{f} #{new_name}`
`rm #{f}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment