converting layout to haml