Created
October 15, 2013 10:54
-
-
Save saten/6989855 to your computer and use it in GitHub Desktop.
convert erb to haml in subfolders, don't keep sources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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