Added name and template_name to CodeGenerator