title: Templating using new RazorEngine API
body: <p>Some time ago rendering a template using <code>RazorEngine</code> was as easy as:</p>
  
  <pre><code>string s = RazorEngine.Razor.Parse()
  </code></pre>
  
  <p>However, for some reason, its authors changed their minds about the API and now the simplest way to render a template is:</p>
  
  <pre><code>var key = new RazorEngine.Templating.NameOnlyTemplateKey("EmailTemplate", RazorEngine.Templating.ResolveType.Global, null);
  RazorEngine.Engine.Razor.AddTemplate(key, new RazorEngine.Templating.LoadedTemplateSource("Ala ma kota"));
  StringBuilder sb = new StringBuilder();
  StringWriter sw = new StringWriter(sb);
  RazorEngine.Engine.Razor.RunCompile(key, sw);
  string s = sb.ToString();
  </code></pre>
  
  <p>(at least this is what I deduced from the new API. Old one is marked as deprecated.) Is there a way to use new API to render a template without caching, keys and other fancy stuff? All <a href="http://antaris.github.io/RazorEngine/">official examples</a> simply doesn't work.</p>