Code 301: Class 11- EJS
- Path a core module for node that joins paths
<%= example%>
template to inject data into html
- This link is for the documentation regarding Google Books APIs
- EJS Embedded JavaScript Templating
$npm install ejs
installs ejs in local directory
let ejs = require('ejs')
Place in the upper portion of server.js
- “Feed in a template file and a data file and specify output file:
$ejs ./template_file.ejs -f data_file.json -o ./output.html
- This is a step by step tutorial that walks the user through setting up their first EJS implementation.
- Github repository containing the codebase for the EJS Tutorial
Return to reading-notes Deployed Site
Return to reading-notes Mark Down