What module should I use to help with generating HTML?
There are many different modules available:
- HTMLgen is a class library of objects corresponding to all the HTML 3.2 markup tags. It’s used when you are writing in Python and wish to synthesize HTML pages for generating a web or for CGI forms, etc.
- DocumentTemplate and Zope Page Templates are two different systems that are part of Zope.
- Quixote’s PTL uses Python syntax to assemble strings of text.
Consult the Web Programming topic guide for links and more alternatives.
CATEGORY: library
Comment:
Could probably describe a few categories instead (e.g. standard templating plus cgi.escape and encode(xmlcharrefreplace), tools that build data structures and serialize them (stan, formencode, elementtree, etc), and full-fledged templating systems (cheetah, django's template system, quixote, etc).
Posted by Fredrik (2006-11-25)
Comment:
Could need some updating: Cheetah, Kid, Stan, Ian's formencode stuff, Django templates, ...
Posted by Fredrik (2006-10-28)