For years I’ve been using ERB as my templating language of choice. Before that I tried Slim and Haml, but ended back on ERB for performance reasons. Since then Haml performance has improved, and I’m now moving back to it so save myself some typing. These are the steps I took:
bundle add haml-railsrails generate haml:application_layout convert- run tests to check everything is working.
rm app/views/layouts/application.html.erbrails haml:erb2haml- run tests to check everything is working.
- commit
That’s it.