Created
September 2, 2012 00:41
-
-
Save igorescobar/3592564 to your computer and use it in GitHub Desktop.
converting erb to haml and haml to slim
This file contains hidden or 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
gem install haml hpricot ruby_parser slim haml2slim | |
rails generate devise:views | |
for i in `find app/views/devise -name '*.erb'` ; do html2haml -e $i ${i%erb}haml ; rm $i ; done | |
for i in `find app/views/devise -name '*.haml'` ; do haml2slim $i ${i%haml}slim ; done | |
for i in `find app/views/devise -name '*.haml'` ; do rm $i ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment