monkinetic weblog

Steve Ivy's Weblog - Since 1999 - XII Ed.

Argh! Debugging Cheetah Template Engine

I'm trying to use the Cheetah template engine – a python-based engine along the lines of Velocity – and debugging the template is getting very very annoying.

I have a data structure that looks like this (">output.txt) and a template that looks like this (">feedReport.tmpl).

As far as I can tell the template code matches the datastructure, and I'm passing in the data (the dictionary described in output.txt) like so:

t = Template(file="feedReport.tmpl", searchList=[data])

But the template is outputting nothing! I looked for an email address for Sam Ruby (who's using Cheetah for his weblog engine) to no avail. (Maybe he'll see this post in Technorati and come to my aid! –))

If anyone out there is familiar with Cheetah I could really use some help.

My name is Steve Ivy and I write about technology, the open web, social software, and general nerdity on monkinetic.com. You should follow me on Twitter or subscribe to this blog if you like what you're reading. I spend my days hacking Movable Type, python, Django, and various other efforts at Wallrazer. This is my personal site.