module documentation
(source)

HTML rendering for twisted.web.
Class CharRef A numeric character reference. Given a separate representation in the DOM so that non-ASCII characters may be output as pure ASCII.
Class TagLoader An ITemplateLoader that loads an existing flattenable object.
Class XMLFile An ITemplateLoader that loads and parses XML from a file.
Class XMLString An ITemplateLoader that loads and parses XML from a string.
Function renderElement Render an element or other IRenderable.
Variable tags Undocumented
Variable TEMPLATE_NAMESPACE Undocumented
Variable VALID_HTML_TAG_NAMES Undocumented
def renderElement(request, element, doctype=b'<!DOCTYPE html>', _failElement=None): (source)
Render an element or other IRenderable.
Parameters
request:IRequestThe IRequest being rendered to.
element:IRenderableAn IRenderable which will be rendered.
doctype:Optional[bytes]A bytes which will be written as the first line of the request, or None to disable writing of a doctype. The argument should not include a trailing newline and will default to the HTML5 doctype '<!DOCTYPE html>'.
_failElement:Optional[Callable[[Failure], Element]]Undocumented
Returns
objectNOT_DONE_YET
Present Since
12.1
tags = (source)

Undocumented

TEMPLATE_NAMESPACE: str = (source)

Undocumented

VALID_HTML_TAG_NAMES: set[str] = (source)

Undocumented