EJS
Directory Structure
Test02_EXPRESS/
βββ data
β βββ user.json
βββ node_modules
βββ package.json
βββ public
β βββ css
β βββ style.css
βββ router
β βββ main.js
βββ server.js
βββ views
βββ body.ejs
βββ header.ejs
βββ index.ejs1. Add dependency
1-1 Update package.json
package.json1-2 Update `server.js``
2. EJS Template Engine
Syntax
2-1. Passing data to the VIEW
2-2. Accessing data & looping in the VIEW

2-3. Splitting EJS
Importing a File
Last updated