render_to_html#
- treescope.render_to_html(value: Any, roundtrip_mode: bool = False, ignore_exceptions: bool = False, compressed: bool = True) str [source]#
Renders an object to HTML using the default renderer.
- Parameters:
value – Value to render.
roundtrip_mode – Whether to render in roundtrip mode.
ignore_exceptions – Whether to catch errors during rendering of subtrees and show a fallback for those subtrees, instead of failing the entire renderer.
compressed – Whether to compress the output HTML.
- Returns:
HTML source code for the foldable representation of the object.