By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Writing HTML

P: n/a
I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it. Does anyone have any recommendations (particularly ones
not listed on PyPI)?

Thanks
Jun 2 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Mon, 02 Jun 2008 01:03:05 -0700, miller.paul.w wrote:
I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it.
I guess that's where the many templating engines are used.

Ciao,
Marc 'BlackJack' Rintsch
Jun 2 '08 #2

P: n/a
mi***********@gmail.com wrote:
I've searched the standard library docs, and, while there are a couple
options for *reading* HTML from Python, I didn't notice any for
*writing* it. Does anyone have any recommendations (particularly ones
not listed on PyPI)?

Thanks
My approach is usually to write the data-load in XML rather than
directly in HTML, and then use XSLT to produce the (X)HTML.

You can do the whole of this, or just the second part, using
FourSuite.

If the XML, later, needs to be changed, you can use FourSuite
to drill down to somewhere using XPath and change that
particular part.

But none of this is really specific to Python, its the
XML skill-set you really need.

Jun 2 '08 #3

P: n/a
On Jun 2, 6:11*am, Ken Starks <stra...@lampsacos.demon.co.ukwrote:
My approach is usually to write the data-load in XML rather than
directly in HTML, and then use XSLT to produce the (X)HTML.
That's a good idea I hadn't considered. Thanks!
Jun 2 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.