define razor engine
RazorEngine provides a base implementation of a template class, the TemplateBase, this is normally superseded by the model specific template class, the TemplateBase<T>. For most use cases, we're hoping this will be enough. To get started with template using RazorEngine, you can simply use the static Razor type: string template = <div>Hello @Model.Name</div>; var model = new { Name = Matt }; string result = Razor.Parse(template, model);