Razor is a template markup syntax based on the C# programming language.The RazorTemplateTransform function allows for creating HTML from templates. It is used by ASP.NET MVC.



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.


The data fields that are accessible to the template. You can, for example, enter a Custom Type or an ExecuteSQL in this property


The Razor template string. Use @Model to access the properties of the structured object referenced in this property, for example:

If you point the Model property at a list, you can loop through the list items like his @foreach(var item in Model) { @:@item.FirstName,@item.LastName }

Wikipedia Razor

Razor syntax quick reference