The HubSpot CMS Boilerplate illustrates best practices and helps developers create a website quickly on the HubSpot CMS.
{% extends %}
tag and referencing the {% block body %}
block for its main content. A sample of how the extend tag and blocks are being used can be seen in any of the html files inside of the templates directory. Learn more about blocks and extends.
This is a common method of developing on CMS systems where you have a base (sometimes called a main/parent) template that contains all the main common structural pieces of content on your site. These are often items that are inside of the <head>
element on your site such as common meta properties (ex: Title and Meta Description), Favicon links, CSS links, and 3rd party scripts
require_js
to load it where and when you need it.require_js
to load jQuery where and when you need it.