Aaron Brady writes about templating in Python at insom.me.uk.
Been there, done that, got the T-Shirt
We wrote a templating tool for Java JTemplater, just when Webmacro seemed to be stalling and not reaching version one, just before the Velocity project started.
Partly this was over licensing, partly over what we felt to be better practice, partly to get around some bugs. Whatever, it was a mistake, fortunately we learnt lots and were able to move easily to Velocity which we still use.