A templating engine enables us to use static template files in our application.
Full Stack JS apps typically use the Model/View/Controller paradigm. The “view” portion of this is the rendering of these templates.
The first templating engine I ever used in a project was EJS. It has 13m weekly npm downloads (as of May 2023). Alternatives include Handlebars (12m), pug (1.3m), and many others.
EJS Docs here
Wikipedia (Yes really)