The only code generator I use now isn't web-related.
I use wxGlade to generate perl code for wxPerl (a wrapper round wxwidgets for platform independent GUI building).
Lately I've been doing much more programming for offline applications then web development. The good thing is that I can use my favorite language for both.
Back in the days when I did the whole process of building a site I used DreamWeaver wich in a way is an HTML generator