Closed atomic-junky closed 2 years ago
When you put in the express options the keyword client, ejs is not working.
client
Example:
# server.js (using express) app.get('\', (req, res) { res.render('./pages/index.ejs', { client: { version: '1.0.34' } }) })
# index.ejs <!DOCTYPE html> <html lang="en"> <head> <title>App</title> </head> <body> <%- include('./templates/app') %> </body> </html>
return an error:
include is not a function
And if you change client by an other word it's work!
Just run upon this error and found the same solution!
When you put in the express options the keyword
client
, ejs is not working.Example:
return an error:
And if you change
client
by an other word it's work!