Here is my case:
I have a component Foo and I want it to have a blazor template called Wrapper which will be used to wrap somepart of Foo's content.
What I need to do is something like
Normal usage:
<Foo>
<Wrapper>
<div>
<p>Something in the wraper</p>
@context // context should be some content of Foo
</div>
</Wraper>
</Foo>
Inside Foo
@* Other content of Foo*@
@if(Wrapper != null){
@* Pass to Wrapper some content of Foo *@
Wrapper(@* How to render html/components here? *@)
}
@* Other content of Foo*@
But there is no way to pass html or components for the template?
How can I do this?
Templated Components, which it different fromTemplated controls. Also, the docs don't have an example where you have aRenderFragment<RenderFragment>- Vencovsky