convert application layout to HAML