Rewriting HTML to HAML