Writing HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • miller.paul.w@gmail.com

    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
  • Marc 'BlackJack' Rintsch

    #2
    Re: Writing HTML

    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

    Comment

    • Ken Starks

      #3
      Re: Writing HTML

      miller.paul.w@g mail.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.

      Comment

      • miller.paul.w@gmail.com

        #4
        Re: Writing HTML

        On Jun 2, 6:11 am, Ken Starks <stra...@lampsa cos.demon.co.uk wrote:
        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!

        Comment

        Working...