Skip to content

Instantly share code, notes, and snippets.

@bespokoid
Created April 8, 2012 02:41
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 bespokoid/2334042 to your computer and use it in GitHub Desktop.
Save bespokoid/2334042 to your computer and use it in GitHub Desktop.
Convert all .ERB files in given directory tree to .HAML
Find.find('vendor/extensions/shop').each {|f| puts ("html2haml, #{f}, #{f.slice(0...-3)+"haml"}") if f =~ /.*\.erb/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment