EvanHahn / Express.js-in-Action-code

Code from "Express.js in Action", a little book I wrote
https://manning.com/hahn/?a_aid=express-in-action&a_bid=fe3fcff7
172 stars 86 forks source link

syntax of include for ejs has changed - Chapter 3 index.ejs is affected #16

Closed JamesCHub closed 3 years ago

JamesCHub commented 3 years ago

for the includes in index.ejs and new-entry.ejs in Chapter 3, change from: <% include header %> to <%- include('header'); %>

and likewise for footer

where: "ejs": "^3.1.6", "express": "^4.17.1",

EvanHahn commented 3 years ago

It looks like you've run into a spot where the book is using an out-of-date EJS version.

If the code in the book is incorrect with the old EJS version, let me know and I'll update the errata. Otherwise, I'm going to close this issue.