Skip to content

Instantly share code, notes, and snippets.

@jteneycke
Last active December 16, 2015 15:18
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 jteneycke/5454472 to your computer and use it in GitHub Desktop.
Save jteneycke/5454472 to your computer and use it in GitHub Desktop.
ruby hamlize
#!/usr/bin/env ruby
Dir.glob("*.html.erb").each do |erbname|
hamlname = erbname.gsub(".html.erb", ".html.haml")
system "/usr/bin/html2haml #{erbname} #{hamlname}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment