Teng is a really nice template generator for linux. We are using it successfully on embedded linux platforms (power pc). As it has a small foodprint it could also be usefull for android and windows. But at least for windows it is not compileable at all.
Thanks for Teng, it's the best!