HyperText generates HTML or XHTML. It's small and it's fast and the code will bend your mind. Fairly complete documentation is in HyperText.HTML40.__doc__.
In general, classes are named for elements, in upper case. The constructors take optional content arguments, followed by keyword arguments, which are the element attributes. For example:
A("dustman.net",href="http://dustman.net/")
produces an instance that renders (when converted to a string or printed) as:
<A href="http://dustman.net/">dustman.net</A>
For a more instructive example, see the ASCIIChart.py program which is included in the distribution.
dustman.net
>
Andy
>
Python
>
HyperText Package
This page maintained by
Andy Dustman