Frameworks
JavaScript Templating Frameworks
Within the server.js file the addition of server.ser( 'view engine', 'ejs');
will set express to search ejs templates under a views/ directory.
import express from 'express';const server = express();server.set('view engine', 'ejs');
Includes
The most basic use of an include is to call portions of html from seperate sources rather then having either all the html in one doc. Or having to repeat html code over and over in seperate instence.
<%- include('someEJSFile') -%>//renders the defined ejs file