Question: Fill in the blank: Use the ________ statement to use the same base template across multiple page templates.
- include
- extends
- set
- require_html
Explanation
In HubSpot templating, extends is the HubL tag used for template inheritance, which lets a child template use a shared base layout and fill its defined block regions. That is the standard way to keep multiple page templates on the same structural foundation without duplicating the full layout. HubSpot’s template documentation shows base layouts being reused through extends and blocks for page-specific content. This approach is different from inserting a snippet or assigning a variable because it controls the parent-child relationship between templates. HubSpot Developers+3HubSpot Developers+3HubSpot Developers+3
Why the other options are incorrect
include inserts a partial or reusable snippet into a template, but it does not make one page template inherit a shared base template. HubSpot Developers+1
set assigns values to variables in HubL, so it is not used for shared template inheritance. HubSpot Developers
require_html is used to add HTML from files or inline content, not to define a parent template across multiple page templates. HubSpot Developers
Source for verification
https://developers.hubspot.com/docs/cms/start-building/building-blocks/templates/html-hubl-templates
https://developers.hubspot.com/docs/cms/reference/hubl/functions
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.
