Is it possible to start a render fragment with an expression block? For example is it possible to write the Blazor render fragment below without the outer tags?
@{ RenderFragment<MyClass> myRenderFragment = (ctx) => @<text> @{var clas = ctx.Bold ? "bold" : "";}<span class="@clas">@ctx.Text</span></text>;}@myRenderFragment(new MyClass(true, "Hello"))@myRenderFragment(new MyClass(false, "World"))@code { public record class MyClass(bool Bold, string Text);}