Html

class dsviper.Html

Bases: object

A class used to generate HTML representation.

Note: Not directly instantiable.

static body(content: str) str

Embed the content in a body.

static document(title: str, style: str, body: str) str

Return an HTML document.

static documents_details(documents: list[DocumentNode], show_type: bool = False) str

Return the HTML representation of the documents as a hierarchy of details.

static dsm_definitions(definitions: DSMDefinitions, show_documentation: bool = False, show_runtime_id: bool = False) str

Return the HTML representation of the DSM Definitions.

static style() str

Return the default style.

static type(type: Type) str

Return the representation of the type in HTML.

static value(value: Value, use_description: bool = False) str

Return the representation of the value in HTML.

static value_pretty(value: Value, show_type: bool = False) str

Return the representation of the value like the HTML pretty printer.