Good afternoon!
I'm trying to render the DOM, but it's not working. I can't understand or don't see the error in the code.
After the DIV block with class col-6, the rest of the code is accepted as plain text by the compiler
private RenderFragment userProgram => (__builder) =>{ int i = 0; foreach (var value in _UserPrograms) { string left = string.Empty; string pw = "160px"; string name_prog = Resources.Strings.AppRes.ResourceManager.GetString("UserProgram_" + value.name_prog); string name_prog_d = Resources.Strings.AppRes.ResourceManager.GetString("UserProgram_" + value.name_prog +"_d"); if (i == 0) {<div class="row mt-3"> }<div class="col-6"><div class="card-program text-@left"><img class="img-svg" src="@value.icon"><p style="height: 95px; width: @pw" class="d-flex align-items-end justify-content-@left @value.name_prog">@name_prog</p><small>@name_prog_d</small></div></div> if (i == 1) {</div> } i++; if (i > 1) { i = 0; } }};I tried using MarkupString, but using it will not work the event handlers that I need in the future in the DIV block