Summary
Transform a text template.
- Namespace
- Cake
.Common .Tools .TextTransform - Containing Type
- TextTransformAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("T4 Text Templating")]
public static void TransformTemplate(this ICakeContext context, FilePath sourceFile, TextTransformSettings settings)
Examples
// Transform a .tt template.
var transform = File("./src/Cake/Transform.tt");
TransformTemplate(transform, new TextTransformSettings { OutputFile="./src/Cake/Transform.cs" });
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
sourceFile | FilePath | The source file. |
settings | Text |
The settings. |
Return Value
Type | Description |
---|---|
void |