Hello,
I try to follow-up how does the content is displayed in a page.
Obviously, you have to call $OUTPUT->main_content() to display content.
I checked the function in the code and this part just display a div (which is a hack as the comments states) and put a placeholder into $rendered (which is a big string containing all the HTML of the page, that is cut between header and footer by looking at this placeholder).
But I cannot find where and how this placeholder is replaced by actual content (which looks like populated by plugins, the core renderer contains nothing).
Could someone helps or indicate documentation or general directions / logic behind ?
Regards,
Simon