title: Replacement for @helper in ASP.NET Core
body: <p>So far, i don't think <code>ViewComponent</code> solves that neither does <code>TagHelper</code>. Is there any replacement to this? Something that takes parameters and returns a <code>HtmlString</code>?</p>
  
  <p>I don't see anything harmful with:</p>
  
  <pre><code>@helper foo(string something) {
       &lt;div&gt;Say @something&lt;/div&gt;
  }
  
  var emailbody = classfilenameinAppCodefolder.foo("hello"); //store result in a variable for further processes
  </code></pre>
  
  <p>For now i believe its a temporary delete before RC. <a href="https://github.com/aspnet/Razor/issues/281" rel="noreferrer">https://github.com/aspnet/Razor/issues/281</a> and <a href="https://github.com/aspnet/Mvc/issues/1130" rel="noreferrer">https://github.com/aspnet/Mvc/issues/1130</a> Well! it better be. I hope someone is working on it. Without <code>@helper</code>, building large <code>HtmlString</code> or 'template' would be a serious pain.</p>
  
  <p>Note: Partial View doesn't seem to do the trick. I think it only renders views not return view to variable. </p>
  
  <p>Secondly, what happened to the App_Code folder?</p>