This is what i'm trying to do
<h3>Component</h3>
@Wrapper(@<span>Content One</span>)
@Wrapper(@<span>Content Two</span>)
@Wrapper(@<span>Content Three</span>)
@code {
RenderFragment Wrapper(RenderFragment content)
{
<h2>Check this out: @content</h2>
}
}
output should be:
<h2>Check this out: <span>Content One</span></h2>
<h2>Check this out: <span>Content Two</span></h2>
<h2>Check this out: <span>Content Three</span></h2>
But it won't compile.
I don't want to have to create a separate component for the wrapper, although I know this can be done, the wrapper is far too simple to justify having another file to maintain.
