This is an old copy of the Python FAQ. The information here may be outdated.

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


A Django site. rendered by a django application. hosted by webfaction.