Skip to content

Instantly share code, notes, and snippets.

@seanchas116
Last active August 29, 2015 14:22
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 seanchas116/31caa3327be858331a19 to your computer and use it in GitHub Desktop.
Save seanchas116/31caa3327be858331a19 to your computer and use it in GitHub Desktop.
haml -> jade
Dir.glob("./**/*.haml").each do |haml|
jade = haml.gsub(/\.haml$/, ".jade")
`haml #{haml} --style ugly | html2jade --donotencode --noemptypipe --bodyless > #{jade}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment