Transform the HTML view to a HAML one