TextTransformAliases.

TransformTemplate(ICakeContext, FilePath) Method

Summary

Transform a text template.

Syntax

[CakeMethodAlias]
[CakeAliasCategory("T4 Text Templating")]
public static void TransformTemplate(this ICakeContext context, FilePath sourceFile)

Examples

// Transform a .tt template.
var transform = File("./src/Cake/Transform.tt");
TransformTemplate(transform);

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
sourceFile FilePath The source file.

Return Value

Type Description
void