Pug Template Inheritance: Building Maintainable Layouts with extends and block
Centralize your HTML skeleton in one Pug layout and let child templates override named blocks — including append/prepend for additive changes and multi-level section layouts.