title: Rendering HTML as string from a razor file and a poco class
body: <p>I have a simple razor file _modelTemplate.cshtml and a poco class model.
  I'd like to be able to Render HTML string by passing a model to the _modelTemplate.cshtml </p>
  
  <p>Reason: I'm working on a legacy WebForms application and really would just like to use razor as a templating engine to generate clean HTML for a particular section that doesn't need WebForms server controls or postbacks. </p>
  
  <p>I'm not needing any MVC helpers in the Razor file, just a simple template and a model for bindings. I figured I could use razor to generate the HTML, and then bind that rendered string to a Literals's .Text property in the WebForm's .aspx page.</p>
  
  <p>I'm thinking something like:</p>
  
  <pre><code>Lit1.Text = RenderRazorTemplateAsString(razorFilePath, model);
  </code></pre>
  
  <p>Is there a method to do this, or would I have to build out something?</p>