blank.gif Next blank.gif Home Page

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


SYNOPSIS

# Classes
class Address(Text)
class Area
class BR
class Backquote(Text)
class Base
class Caption(Tbase)
class Center
class Cite(Text)
class Code(RawText)
class Comment
class Container
class Define(Text)
class DefinitionList(List)
class Document
class Emphasis(Text)
class Font(Text)
class Form
class Frame
class Frameset
class FramesetDocument(Document)
class HR
class Heading
class Href
class Image
class ImageBulletList(List)
class Indent(Text)
class InitialCaps
class Input
class KBD(RawText)
class List(UserList)
class MailTo
class Map
class Meta
class MinimalDocument(Document)
class Multicol(Container)
class NOBR
class Name(Href)
class NonBulletList(List)
class OrderedList(List)
class P
class Paragraph
class Pre(RawText)
class RawText(Text)
class Sample(RawText)
class Script
class Select(UserList)
class Spacer
class Strong(Text)
class TD(Container, Tbase)
class TH(Tbase)
class TR(Container, Tbase)
class Table
class TableLite(Container, Tbase)
class Tbase
class Text
class Textarea
class URL
class Var(Text)

# Functions
def escape(text)
def getgifsize(path, data=None)
def mpath(path)
def relpath(path1, path2)

# Variables
string DOCTYPE = '<!DOCTYPE HTML PUBLIC "-/ ...
string __file__ = './HTMLgen.py'
string __version__ = '1.0.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.0 and proposed tag elements. An excellant reference for HTML tag elements can be found at Sandia National Labs. I'll try to keep up with this list.

The Document class is a container object which acts 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 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
regex
regsub
string
time


blank.gif Next blank.gif Home Page
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedric@phoenix.net
Generated: Mon Dec 2 1996