converts application layout to haml and rm's erb version