title: How to create RazorEngineHost for RazorTemplateEngin in non MVC project
body: <p>I'm using <code>RazorEngine</code> in an Console application. </p>
  
  <p>I want to initialise <code>RazorEngineHost</code> and pass into <code>RazorTemplateEngin</code>. However as I can see in MSDN documentations it says <code>RazorEngineHost</code> "is not intended to be used directly from your code".<a href="https://msdn.microsoft.com/en-us/library/system.web.razor.razorenginehost(v=vs.111).aspx" rel="nofollow noreferrer">RazorEngineHost</a></p>
  
  <p>So what is the best way of creating <code>RazorTemplateEngin</code>?</p>
  
  <p>This question quite different from <a href="https://stackoverflow.com/questions/9426019/how-to-use-razor-view-engine-in-a-console-application">How to use Razor View Engine in a console application?</a>> I want to use RazorTemplateEngin becuse I have template not string.</p>