Template inheritance is specifically designed for this: the base template defines the shared structure (header, footer, CSS), and child templates fill in the unique content blocks.