As Eric commented, there is no Html in RazorEngine (see related answer), however you can use @Include("mytemplate") .
If you want to be compatible with the @Html.Partial() syntax for any reason, you can extend the RazorEngine syntax like this .
Basically what you want to do is to provide your own class that inherits from TemplateBase<T> (or ITemplate , to be precise), and then set it either using the configuration or using the @Inherit MyBaseClass<MyModel> syntax. In this case, you can simply call the Include method from your Partial method in the Html helper class.
source share