Allowing templates to contain inherited blocks/sections (à la Twig, Blade, et al.)

Skip to first unread message

Patrick Nelson

Oct 19, 2017, 2:16:01 AM10/19/17
RFC here:

Opening this up for a little more discussion and exposure. Is there support for this sort of functionality? Please read through Twig documentation (here:  for an example of what I'm after for SilverStripe's native template language. This would allow for more advanced mixing of HTML that is currently not inherently possible simply by using includes or using our one variable (i.e. $Layout) two level layout system.

Let me know what you guys think! Please offer critiques, alternatives, syntax changes and anything else that comes to mind either here or (preferably) on the issue itself. Thanks!

Reply all
Reply to author
0 new messages