Template-based code generator generator.