#Cheetah, if I remember correctly, actually generates #Python code for your templates. This doesn't seem to be a common thing; for example none of the #Mustache implementations I've looked at does it.
Does anyone know of a template engine that does this for #C? Implementation language should also be C for... reasons.