Razor Template Transform
RazorTemplateTransform
Section titled “RazorTemplateTransform ”Razor is a template markup syntax based on the C# programming language.
The RazorTemplateTransform function allows for creating HTML from templates.
Properties
Section titled “Properties ”Encoding
Section titled “Encoding ”Describes what to do with text written to the template from the model.
-
Raw
Output the text as-is.
-
Html
Encode the text to html.
Model
Section titled “Model ”Contains the data that will be used to populate the Template.
You can, for example, enter a Type like String, or an ExecuteSQL.
Template
Section titled “Template ”A text template that will be populated by the data in the Model property.
Use @Model to access the properties of the structured object referenced in this property, for example:
@Model.FirstName
If you point the Model property at a list, you can loop through the list items like this:
@foreach(var item in Model) { @:@item.FirstName,@item.LastName }