title: How to reuse HTML snippets in asp.net core razor page?
body: <p>I try to reuse HTML snippets in my razor page (view component) but somehow it never call or hit the break in the html section. </p>
  
  <p>I'm using Asp.net core 2.2   </p>
  
  <pre><code>        @{
          Func&lt;CategorySimpleModel, Microsoft.AspNetCore.Html.IHtmlContent&gt; DisplayManufacturerPicture=
              @&lt;div class="col-sm-4"&gt;
                  &lt;div class="row"&gt;
                      @foreach (var m in item.Manufacturers)
                      {
                          &lt;div class="col-md-6 col-sm-12"&gt;
                              blah blah
                          &lt;/div&gt;
                      }
                  &lt;/div&gt;
              &lt;/div&gt;;
          }
  
     @foreach (var root in Model.Categories)
              { 
                 DisplayManufacturerPicture (root);
              }
  </code></pre>