HyperText Package

Lightweight HTML/XHTML generator

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.

Releases

1.0.0
Released: 2000-03-10 00:00 UTC
Stability: Perfect in every way
1.0.1
Released: 2000-04-20 00:00 UTC
Stability: Excellent

dustman.net  >  Andy  >  Python  >  HyperText Package
This page maintained by Andy Dustman

The World's Worst Search Engine
Gimme some money US$
Google
Powered by Zope [ Python Powered ] powered-by-djbdns.gif SourceForge Logo O'Reilly Open Source Convention