Template inheritance vs. mixins for shared layout fragments in Pug
When building a site with Pug, the team needs a single source of truth for recurring page sections such as headers, footers, and navigation bars. Template inheritance provides explicit blocks that children fill, but nested block definitions can create ambiguous injection points, and the whitespace‑sensitive syntax may add unwanted line breaks. Mixins encapsu