Post Processing
I’ve deployed something I’ve been playing with for a while now. My planet’s Memes list is now rendered statically. Previously I had produced JSON on the server, which was fetched using AJAX techniques, and then inserted into page using client side DOM wrangling. Since the page itself is XML, I’ve replaced that with server side DOM wrangling (technically it is libxml2 tree wrangling, which uses different method names, but amounts to the same thing).
In the process I’ve enhanced the subscription list to contain links to the past week’s entries for each weblog listed. Simply hover over a subscription to see the links.
I also add the search box by post processing the generated XHTML.
One of these days I need to work on finding a way to express a set of post processing filters to be run (and the outputs they produce, which in this case includes a memes.atom file) in the config.ini, and implement it in such a way that hardcoding sys.path.insert
statements isn’t necessary.