Open ns8482e opened 4 years ago
It would be nice to define zone using @section asp.net syntax.
@section
@section Header { <h1>My Header</h1> }
which would be technically same as following tag helper
<zone name="Header"> <h1>My Header</h1> </zone>
and section can be rendered by calling on Views.
@if (IsSectionDefined("Header")) { @await RenderSectionAsync("Header", required: false) }
Related PR has been merged. Can this be closed @ns8482e ?
@agriffard I guess this was reopened because merged PR was reverted.
It would be nice to define zone using
@section
asp.net syntax.which would be technically same as following tag helper
and section can be rendered by calling on Views.