Current Size:
Chakra BreakPoints
base0px
sm480px
md768px
lg992px
xl1280px
2xl1536px
Current Height:Width
widthpx
heightpx

Subjects

Frameworks

Date Created: 2022/02/03

Last Update: 2022/12/16

#javascript #general #notes

Frameworks

JavaScript Templating Frameworks

EJS

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

Liquid

Handlebars

JavaScript Web Server Frameworks

Express

Koa

Hapi.js

Sails.js

More Notes

All Notes
HomeProjects

Links

Home Articles Notes Projects About Style Guide Site Credits

Contact

 [email protected]

Location

🌎 Earth