Generating HTML

Stefan Behnel stefan.behnel-n05pAM at web.de
Wed Sep 12 08:17:28 EDT 2007


Sebastian Bassi wrote:
> What are people using these days to generate HTML? I still use
> HTMLgen, but I want to know if there are new options. I don't
> want/need a web-framework a la Zope, just want to produce valid HTML
> from Python.

There's also lxml.html, which has straight forward support for generating HTML
and comes with a lot of nice goodies for HTML handling:

http://codespeak.net/lxml/dev/lxmlhtml.html#creating-html-with-the-e-factory

Note that this requires lxml 2.0, which is currently in alpha status.

Stefan



More information about the Python-list mailing list