Transform layout to haml