Template blocks/sections with inheritance
We should implement block/section functionality seen in other templating languages so that we can reduce the instances of repeated code when there are variations of a template that cannot be shared due to the inherent limitations of includes.
While the advantages of blocks are likely already known, I’ll explain my use case. There are many instances in my case where I could have HTML code that must be repeated around includes which could otherwise be inverted such that the typically included code is embedded into the template and the variable components would instead be plugged into the blocks of the parent template (which itself is also capable of utilizing includes).
And commented here for this specific capability: https://github.com/silverstripe/silverstripe-framework/issues/5604#issuecomment-337750308
Patrick Nelson commented
Actual issue here: https://github.com/silverstripe/silverstripe-framework/issues/7498
Benjamin Blake commented
Glad you decided to post this here.
p.s. This is Admonish