Converting application to HAML