Skip to content

Instantly share code, notes, and snippets.

@saten
Created October 15, 2013 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saten/6989855 to your computer and use it in GitHub Desktop.
Save saten/6989855 to your computer and use it in GitHub Desktop.
convert erb to haml in subfolders, don't keep sources
Dir[File.join('.','**','*.html.erb')].each {|f| system "html2haml -e #{f} #{f.sub(/erb\Z/,'haml')}; rm #{f} " }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment