User Tools

Site Tools


template_directive.htm
Navigation:  T4 Template Language Reference > Directives >Template Directive Previous pageReturn to chapter overviewNext page

T4 Template Directive

<;#@ template language='C#' debug='true' type='Utility' name = 'DCTTreeWizard' chain='Clarion.File'#>

The 'language' parameter specifies which language is used in the code blocks of the template, and at this time you must specify C#.

The 'debug' parameter allows you to debug templates. When that parameter is on, and the corresponding IDE option is also on, the template source code files are copied to the %root%\..\Templates\dotnet folder. And when there is an error in compiling the template (compilation occurs when you register the template), the error is displayed in the Error pad, and you can then double-click on the error and the .TT file with the error is opened for editing at the line with the error.

The 'type' parameter specifies the type of template, current supported types are:

Application,

Procedure,

ApplicationExtension,

ProcedureExtension,

Utility,

UtilityApplication,

WizardApplication,

WizardProcedure

The 'name' parameter assigns a name to this template, and finally the 'chain' parameter specifies the template family.

template_directive.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1