text_areas.py

[Name] [Synopsis] [Description] [Files] [Bugs] [Author] [History]

Name

text_areas.py - provide text area classes which parse and print themselves

Synopsis

import text_areas

description = '''\
<<title Document title>>

<<section Spam>>

<<subsection Eggs>>

Some text.

<<subsection Even more eggs>>

More text. ;-)
'''

doc = text_areas.Document(
    '',                 # we don't have a name for the document yet
    description,
    1 )                 # we want a contents list at the top
print doc               # emit the HTML code

Description

text_areas.py provides several classes and helper routines to turn ``HTML file descriptions'' into HTML code. Here is only an overwiew of the classes. For more information, refer to the source code. The helper routines are

Files

html_format.py contains the formatting information for the HTML code. makepage.py contains an example of how to overwrite the formatting without changing html_format.py.

Bugs

Soon to come. ;-)

Author

Stefan Schwarzer <s.schwarzer@ndh.net>

History


Top Top of this page