Summary
Creates a text transformation from the provided template.
Syntax
[CakeMethodAlias]
public static TextTransformation<TextTransformationTemplate> TransformText(this ICakeContext context, string template)
Examples
This sample shows how to create a
TextTransformation<TTemplate>
using
the specified template.
string text = TransformText("Hello <%subject%>!")
.WithToken("subject", "world")
.ToString();
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
template |
string |
The template. |
Return Value