Context
Context. Every page on a site shares its document shell, head tags, header, footer and script tags. Put them in one base template with named blocks, and make every page-type template extend it. A layout's template is then a short file that fills the blocks, which is what keeps forty page types consistent. Both engines have inheritance with the same shape.