Generating Specific Kinds of Artifacts from Text Templates
Visual Studio 2008
You can use text templates to generate text artifacts. Text templates can use models as input and produce arbitrary text, such as code files, HTML reports, XML, or configuration files.