Previous Next blank.gif Home Page

Class MinimalDocument - A Document without all the header and footer stuff.


SYNOPSIS

import HTMLgen
class MinimalDocument(Document)
  def __repr__(self)

  # Methods inherited by MinimalDocument from Document
  def __init__(self, resource='', **kw)
  def append(self, *items)
  def copy(self)
  def footer(self)
  def header(self)
  def htmlhead(self)
  def nav_buttons(self)
  def prepend(self, *items)
  def write(self, filename = None)

DESCRIPTION

Can be given a resource file as in Document. Uses the following attributes in the same way as Document: title, subtitle, meta, base, bgcolor, background, textcolor, linkcolor, vlinkcolor, cgi. All others ignored.

def append(self, *items)

Add content to the Document object.

Arg items can be plain text or objects; multiple arguments supported.

def copy(self)

Return a complete copy of the current Document object.

def footer(self)

Generate the standard footer markups.

def header(self)

Generate the standard header markups.

def nav_buttons(self)

Generate hyperlinked navigation buttons.

If a self.go* attribute is null that corresponding button is replaced with a transparent gif to properly space the remaining buttons.

def prepend(self, *items)

Add content to the beginning of the Document object.

Arg items can be plain text or objects; multiple arguments supported.

def write(self, filename = None)

Emit the Document html into file.

In Unix you can use environment variables in filenames. Will print to stdout if no argument.

SEE ALSO

HTMLgen

Document


Previous Next blank.gif Home Page
Buzz.gif

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