The Artima Developer Community
Sponsored Link

Python Buzz Forum
Neutral Templating

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
Neutral Templating Posted: Jul 17, 2006 2:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: Neutral Templating
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

I've been thinking about templating for a while now. Here my thoughts, and here's what they make.

It's only two evenings work so far, so don't expect too much. Like lots of examples or docs or any consideration of real use cases.

I used lxml for this; the killer feature is HTML parsing:

from lxml import etree
parsed_html = etree.HTML(html_string)

That's darn easy, and none of that Tidy crap (it was still cool in 1999, but I've way over Tidy by 2006).

Read: Neutral Templating

Topic: "Discuss" Previous Topic   Next Topic Topic: TurboGears article on IBM Developer Works

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use