reading-notes

EJS

Getting Started With EJS

  1. npm init -y
  2. npm i express body-parser cors ejs
  3. set up path/built in core module for node
  4. Set up express, body parser, cors
  5. set up instance of express
  6. Set up app.use for bodyParser and cors
  7. Path doesn’t need to be installed.
  8. Line 11 @ 3:29 takes two paths and joins them

Evaluate and Injected Variable

How to inject a value into EJS view and how to evaluate the variable.

using if/else in ejs

Layouts

Partials

Helpful Resources

Working With Volumes

EJS Tutorial

source code for tutorial