I'm sure this question has already been asked but don't know how to phrase it correctly. I want to do something like that:
MyView.cshtml:
<partial name="_MyPartial">
<span>some content</div>
</partial>
_MyPartial.cshtml:
<div class="partial">
@RenderInnerHtml()
</div>
and the result is:
<div class="partial">
<span>some content</div>
</div>
Is it possible? If not with Partial Views, then with View Components perhaps?