Previous Next blank.gif Home Page

Class FramesetDocument - A minimal document suitable for entering Framesets.


SYNOPSIS

import HTMLgen
class FramesetDocument(Document)
  def __init__(self, *contents, **kw)
  def __repr__(self)

  # Methods inherited by FramesetDocument from Document
  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

Arguments are for contents NOT a document resource file.

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.

Keyword Parameters

title
string to be used as the document title.
base
object of the Base class
meta
object of the Meta class
cgi
if non zero will issue a mime type of text/html
scripts
a single or list of Script objects to be included in the <HEAD>

No <body> markup. Instead add Frameset(s) with the constructor or append method. Useful methods are append, prepend, write, and copy. Others inherited from Document class are unused.

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