If you haven't checked out CodeSmith, nows the time to do so. (If you have looked at it in the past and didn't like it for some reason, time to look again!) Seriously, if you are developing projects where template based development would be useful, you really need to look at this new version. Eric has done an excellent job continuing the development of CodeSmith. To read all about the new features, go here.