I've been using StringTemplate ( http://www.stringtemplate.org ) for some cool code generation for some time and its ease has really impressed me. I first used it to generate some templates to send email and got hooked on. The simplicity is just awesome. After reading some codegen articles by Terence listed here , I decided to use it to generate java files. Update: Here is a link one should read to understand code generation with StringTemplate. http://www.codegeneration.net/tiki-read_article.php?articleId=65 What I like about StringTemplate: Strict MVC which is very important IMO. I've fallen into traps using other engines where the model can be modified from within the view. As soon as I wanted to add a new view, I was totally lost. I had to go into the old view and find all places where I set some magic value into the model. I like StringTemplate's policy of just disallowing it instead of giving you an option :-) Flexibility of using various delimiters such as ...
Comments