### Module HTMLgen - A class library for the generation of HTML documents.

## SYNOPSIS

    # Classes
    class AbstractTag
    class AbstractTagSingle
    class Address(AbstractTag)
    class Area(AbstractTagSingle)
    class AutoStringTemplate(StringTemplate)
    class AutoTemplateDocument(AutoStringTemplate)
    class BR(AbstractTagSingle)
    class Base(AbstractTagSingle)
    class BaseFont(AbstractTagSingle)
    class BasicDocument
    class Big(AbstractTag)
    class Blockquote(AbstractTag)
    class Caption(AbstractTag)
    class Center(AbstractTag)
    class Cite(AbstractTag)
    class Code(AbstractTag)
    class Comment
    class Container
    class Define(AbstractTag)
    class DefinitionList(List)
    class Div(AbstractTag)
    class Embed(AbstractTagSingle)
    class Emphasis(AbstractTag)
    class Font(AbstractTag)
    class Form
    class Frame(AbstractTag)
    class Frameset(AbstractTag)
    class FramesetDocument(BasicDocument)
    class HR(AbstractTagSingle)
    class Heading(AbstractTag)
    class Href
    class Image(AbstractTagSingle)
    class ImageBulletList(List)
    class InitialCaps
    class Input
    class KBD(AbstractTag)
    class List(UserList)
    class MailTo
    class Map
    class Meta
    class Name(Href)
    class NoFrames(AbstractTag)
    class Nobr(AbstractTag)
    class NonBulletList(List)
    class OrderedList(List)
    class P
    class Paragraph(AbstractTag)
    class Pre(AbstractTag)
    class RawText
    class Sample(AbstractTag)
    class Script
    class Select(UserList)
    class SeriesDocument(SimpleDocument)
    class SimpleDocument(BasicDocument)
    class Small(AbstractTag)
    class Span(AbstractTag)
    class Strike(AbstractTag)
    class StringTemplate
    class Strong(AbstractTag)
    class Sub(AbstractTag)
    class Sup(AbstractTag)
    class TD(AbstractTag)
    class TH(AbstractTag)
    class TR(AbstractTag)
    class TT(AbstractTag)
    class Table
    class TableLite(AbstractTag)
    class TemplateDocument(StringTemplate)
    class Text
    class Textarea
    class U(AbstractTag)
    class URL
    class Var(AbstractTag)

    # Functions
    def compare_f2f(f1, f2)
    def compare_s2f(s, f2)
    def escape(text, replace=string.replace)
    def imgsize(path)
    def markup_re(text, rex=None, marker=None, collapse=0)
    def mpath(path)
    def overlay_values(obj, dict)
    def relpath(path1, path2)

    # Variables
    string CONTYPE = 'Content-Type: text/html\0 ...
    string DOCTYPE = '<!DOCTYPE HTML PUBLIC "-/ ...
    int I_am_a_list = 1
    string __file__ = '/usr/local/lib/python1.5/ ...
    string __version__ = '2.2.2'

## DESCRIPTION

Each HTML tag type has a supporting class which is responsible for emitting itself as valid HTML formatted text. An attempt is made to provide classes for newer HTML 3.2 and proposed tag elements. The definitive reference for HTML tag elements can be found at W3C. Also, I used the HTML book by Musciano and Kennedy from O Reilly (2nd. Ed.) as the guiding reference.

The Document classes are container objects which act as a focal point to populate all the contents of a particular web page. It also can enforce consistent document formating according to the guidelines from the Yale Web Style Manual.

Features include customization of document template graphics / colors through use of resource files, minimizing the need for modifying or subclassing from the module source code. Support for tables, frames, forms (persistent and otherwise) and client-side imagemaps are included.

A newer implementation for the Table support is now included, TableLite(). In support of this there are new tag classes TD, TH, TR and Caption. These class instances can be assembled in any way to populate the TableLite container object.

## SEE ALSO

    UserList
    copy
    os
    re
    string
    time

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Tue Apr 20, 1999