bradtraversy / node_passport_login

Node.js login, registration and access control using Express and Passport
1.73k stars 1.3k forks source link

Include statement in ejs file not correct #131

Closed kevintagline closed 1 year ago

kevintagline commented 1 year ago

In login.ejs and register.ejs files include statements are not correct, which is causing following error SyntaxError: Unexpected token '/' in /Users/tagline/node_passport_login/views/login.ejs while compiling ejs

AElgamal5 commented 1 year ago

Try this line:

<%- include('./partials/messages.ejs') %>

instead of

<% include ./partials/messages %>