Fill in the blank: Use the ________ statement to use the same base template across multiple page templates.
- include
- extends
- set
- require_html
Explanation: The correct answer is extends. The ’extends’ statement in templating languages like Jinja or Django allows developers to inherit the structure and content of one template into another, enabling the reuse of common elements across multiple page templates. When a template extends another, it inherits all the blocks, variables, and macros defined in the parent template, which can then be overridden or extended further in the child template as needed. This approach promotes code reusability, reduces duplication, and ensures consistency throughout the website by maintaining a single source of truth for shared elements like headers, footers, navigation bars, or sidebars. By using the ’extends’ statement, developers can efficiently manage complex website structures, streamline development workflows, and make maintenance and updates more manageable. Overall, the ’extends’ statement is a powerful tool for creating modular, scalable, and maintainable templates in web development projects.