convert layouts to haml