Convert layout.erb to haml