just a quick question about code esthetics. As far as I was able to find out, the @RenderBody function only renders content from sub-templates, that is not enclosed in a section.
Now, I'm a German, and I have to confess that I like structure. Shocking, I know. So it really itches me when not putting that body-code into a "@Section Body". But at the same time it would be nice to use the @RenderBody function instead of RenderSection, simply because it's there.
RenderBody and custom body section
Hiho,
just a quick question about code esthetics. As far as I was able to find out, the @RenderBody function only renders content from sub-templates, that is not enclosed in a section.
Now, I'm a German, and I have to confess that I like structure. Shocking, I know.
So it really itches me when not putting that body-code into a "@Section Body". But at the same time it would be nice to use the @RenderBody function instead of RenderSection, simply because it's there.
Solutions, anyone?
I don't think it's possible. By the way, this is not Umbraco related but is default behavior of the ASP.NET MVC framework
is working on a reply...