Introduce div helper, move repr method to as_html