Using Built-in Directives in Text Templates
Directives provide instructions to the text template transformation engine. Built-in directives are directives that Domain-Specific Language Tools provides for you to use in your text templates.
In This Section
Directive Syntax (Domain-Specific Languages)
Describes the syntax for using built-in directives.How to: Specify File Output Types in Text Templates
Explains how to use the output directive to specify the output file type that you want from the text template.How to: Specify a Language in Text Templates
Explains how to add a directive to indicate the programming language that you want to use in the text template.How to: Specify a Culture in Text Templates
Explains how to use the culture parameter of the template directive to generate output strings for various cultures.How to: Reference Assemblies in Text Templates
Explains how to use type members in other assemblies in text templates.How to: Import Namespaces in Text Templates
Explains how to import a namespace so that you do not have to type fully qualified type names in text templates.How to: Include Files in Text Templates
Explains how to include a file in a text template so that you can organize your code for reuse.How to: Split Text Templates into Multiple Files
Explains how to use the include directive to reference multiple text template files.
Reference
Domain-Specific Language Tools
Related Sections
Adding Code to Text Templates
Contains topics that explain how to add code, such as statements and expressions, to text templates.Accessing Models from Text Templates
Explains how to call a generated directive processor so that you can access a model from a text template.Architecture of the Text Template Transformation Process
Explains the architecture of the text template transformation process, including the host, engine, and directive processor components.Domain-Specific Language Tools Glossary
Defines key terms that are used in the Help for Domain-Specific Language Tools.