title: Migrate html helpers to ASP.NET Core
body: <p>I'm converting a project to ASP.NET Core. I need to migrate lots of reusable html helpers, but html helpers do not exist in Core.</p>
  
  <p>Some are complex, some simple. Here's a extremely simple example:</p>
  
  <pre><code>@helper EditIcon()
  {
      &lt;i class="glyphicon glyphicon-pencil"&gt;&lt;/i&gt;
  }
  </code></pre>
  
  <p>Note that this is only an example.</p>
  
  <p><em>Point is writing a tag helper for that is gigantic overkill.</em> Same for partials. Same for view components.</p>
  
  <p>We're talking about a little snippet of Razor. What is my best option?</p>