RazorGenerator, Templates, and @Html
问题 I'm trying to use RazorGenerator as an email template engine. I want to take a model with the data, assemble the correct set of partial views, and return HTML that I can email out. Edit: In addition to this workflow, any solution would need to be editable as a .cshtml file and be able to be compiled into a dll . For various reasons, it is not practical to deploy the cshtml files themselves - if we can't embed all our razor views into a single file, then we can't use that suggestion. Hence