470,870 Members | 1,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

Writing HTML

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
3 1242
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
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
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.

Similar topics

385 posts views Thread by Xah Lee | last post: by
17 posts views Thread by Eric Lindsay | last post: by
3 posts views Thread by VMI | last post: by
6 posts views Thread by guy | last post: by
1 post views Thread by spohle | last post: by
1 post views Thread by webmaniac | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.