Convert Existing Html.erb To Haml


Answer :

You can use from the command line html2haml



html2haml your_erb_file new_haml_file


If you want to convert all your files in one go, look at this article : http://shifteleven.com/articles/2008/06/08/converting-erb-to-haml-snippet



There you go: http://html2haml.heroku.com/



EDIT: Moved to https://html2haml.herokuapp.com/



http://www.htmltohaml.com



A more user-friendly alternative to the selected answer.



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable