convert HTML to HamlPy