us**@domain.invalid wrote:
Checking out HTMLgen, I find the manual
to be quite terse, and difficult to crack.
Are there any examples or tutorials available
for this package?
Its quite easy: if you have a HTML-tag with included text,
just use the approriate class and pass the text as argument:
<p>hallo</p> becomes Para("hallo")
Headers take an additional argument, the level:
<h1>Head</h1> becomes H(1,"Head")
Nested tags are the same es nested function calls. Each tag
is a container and has an append()-method:
p = Para("hallo")
p.append("another hallo")
Each tag-class ctor takes keyword arguments which become
tag arguments:
l = OrderedList(type='i')
creates an <ol type='i'> like list.
For further info look at the sources, esp. at the HTMLtest
module.
Mathias