goulib.markup¶
simple HTML/XML generation (forked from markup)
# This code is in the public domain, it comes # with absolutely no warranty and you can do # absolutely whatever you want with it.
Functions
|
A utility generator that pads argument list and dictionary values, will only be called with len( args ) = 0, 1. |
|
Escape special html characters. |
|
Utility stuff to convert string, int, long, float, None or anything to a usable tuple. |
|
Print to the stdout. |
|
Escape special html characters. |
|
|
|
|
|
generate full tag. |
|
Inverse of escape. |
Classes
|
An instance of oneliner returns a string corresponding to one element. |
|
A dummy class for attaching attributes. |
|
This class handles the addition of a new element. |
|
This is our main class representing a document. |
|
A dummy class that contains anything. |
Exceptions
|
|
|
|
|
|
|
|
|
|
|
All our exceptions subclass this. |
|
|
|