In our implementation there is one Main Region, where previously items where render like it is on following image
During implementation of certain View, we identify that there should be another region, but in that case, we had issues with html. So we decided to use only Main region and to render all items there. But some items should have its own div while others should remain in the main.
I made following code, and it works ok
I can move some logic to the Controller, but I would like to know is there any other solution.
In the case of region, we can pass information such as using of @Html.DxaRegions(exclude: "name of the region")
So is there any other solution?