Thinking About Filters
As I mentioned before, the Tidy function from the mx extensions acts as a filter, taking in possibly-malformed HTML, and outputting well-formed XHTML. What I'd really like to do is use the filter metaphor more concisely in my code. Never one to re-invent the wheel, I googled for 'file-like filter pattern' and behold, found this interesting thread on the comp.lang.python newsgroup.
This is spot-on for what I want to do. I'm going to take some time and study this concept. It may actually be overkill for my simple use, but hey, this is a learning experience.
9:59:45 PM
|
|