Gem haml-rails allows you to generate views in Haml, but not the original layout.
After running rails new someapp (note: w / o -m haml ) and adding the gem "haml-rails" to your Gemfile you just need to rename application.html.erb to application.html.haml and manually convert its contents from ERB to Haml.
After that, all generated views will be in Haml.
source share