Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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