convert layout to haml