title: What to use instead of WebViewPage.RenderPage method in ASP.NET 5 MVC6
body: <p>Given an example based on old MVC5:
  Views/Shared/Index.cshtml - a view for a SPA app. It contains some markup and a reference to a layout-page:</p>
  
  <pre><code>@{
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>In _Layout.cshtml there're number of includes which are being used via <code>RenderPage</code> helper:</p>
  
  <pre><code>@RenderPage("~/Views/Shared/_ImportCssInline.cshtml")
  @RenderPage("~/Views/Shared/_ImportCssLinks.cshtml")
  </code></pre>
  
  <p>Now in AspNet5 <code>@RenderPage</code> helper isn't available.
  It was the method of <code>WebViewPage</code>/<code>WebPageBase</code>/<code>WebPageRenderingBase</code>. Now they were replaced by <code>RazorPage</code>. But there's no <code>RenderPage</code> method in it.</p>
  
  <p>What should be used instead?</p>
  
  <p>p.s. <a href="https://github.com/aspnet/Mvc/issues/2412">issue</a></p>