EJS is a popular view engine for express js. Instead of loading plain html pages, you can use them to create components. You are able to create a header.ejs and then load it in all your pages.

<head>
    <%- include('../components/head') %>
</head>

Above you can see a way to use ejs, but you can also include date instead of only other ejs files:

<title>
    <%= title %> | Diagonal-Dinosaur 🦕
</title>

Above is another example that uses a variable as an include in html.