Created
May 26, 2013 12:43
-
-
Save leemour/5652686 to your computer and use it in GitHub Desktop.
Convert generated Devise ERB views to HAML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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