Convert layout format to haml