Skip to content

Instantly share code, notes, and snippets.

@leemour
Created May 26, 2013 12:43
Show Gist options
  • Select an option

  • Save leemour/5652686 to your computer and use it in GitHub Desktop.

Select an option

Save leemour/5652686 to your computer and use it in GitHub Desktop.
Convert generated Devise ERB views to HAML
rails g devise:views
gem install html2haml
for file in app/views/devise/**/*.erb; do html2haml -e $file ${file%erb}haml && rm $file; done
gem install haml2slim
for file in app/views/devise/**/*.haml; do haml2slim $file ${file%haml}slim && rm $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment