The module contains the following classes which are intended to be
used in implementing custom tags.
classTag(
ctx, filename, line_num, attribs)
This is the base class upon which all tags are implemented. You are
unlikely to ever subclass this directly. The EmptyTag and
EnclosingTag classes inherit from this class.
classEmptyTag(
ctx, filename, line_num, attribs)
Use this class as a subclass for all tags which do not require a
closing tag and therefore do not enclose content. Examples of
standard HTML tags which do not enclose content are <BR> and
<HR>.
classEnclosingTag(
ctx, filename, line_num, attribs)
Use this class as a subclass for all tags which enclose content.
Examples of standard HTML tags which enclose content are
<BODY> and <TABLE>.
classText(
text)
A simple wrapper around the string passed in the text
constructor argument which passes that string to the
to_html() method when the object is converted to HTML.
classContent(
)
A simple wrapper around a list which calls the to_html()
method of all list elements when the object is converted to HTML.