The CodeTemplate Object
The CodeTemplate class represents your entire template as it's being processed by CodeSmith Generator . You can work with a CodeTemplate object to interact directly with the CodeSmith Generator engine. For example:
Use the GetFileName method to specify the default output file name for a template
Use the Render method to render the output of the template
Use events of the object to insert your own code into the CodeSmith Generator processing cycle
Use the Response property to write directly to the template output