module documentation
(source)

An s-expression-like syntax for expressing xml in pure python.

Stan tags allow you to build XML documents using Python.

Stan is a DOM, or Document Object Model, implemented using basic Python types and functions called "flatteners". A flattener is a function that knows how to turn an object of a specific type into something that is closer to an HTML string. Stan differs from the W3C DOM by not being as cumbersome and heavy weight. Since the object model is built using simple python types such as lists, strings, and dictionaries, the API is simpler and constructing a DOM less cumbersome.

Class CDATA A <![CDATA[]]> block from a template. Given a separate representation in the DOM so that they may be round-tripped through rendering without losing information.
Class Comment A <!-- --> comment from a template. Given a separate representation in the DOM so that they may be round-tripped through rendering without losing information.
Class slot Marker for markup insertion in a template.
Class Tag No summary
Variable voidElements the names of HTML 'void elements'; those which can't have contents and can therefore be self-closing in the output.
voidElements: tuple[str, ...] = (source)
the names of HTML 'void elements'; those which can't have contents and can therefore be self-closing in the output.