Any good replacment for Razor Engine

.net, asp.net-mvc-4, c#

Solution

Razor Engine now has Razor 2 compatibility (introduced in 3.1)

Problem

As you know Razor Engine doesn't work under `MVC4`. So I am wondering if we can use `Model object` to generate email html body in some other way. Any clue which tool/dll we can use for it. I really don't want to put attribute names manually and use `Replace` method if I have 100 fields in the Model... Sample: ``` <div class="display-label"> @Html.DisplayNameFor(model => model.Name) </div> <div class="display-field"> @Html.DisplayFor(model => model.Name) </div> <div class="clear"> </div> ```

Original source

Related problems