79763609

Date: 2025-09-13 08:40:35
Score: 2
Natty:
Report link

In your server.js,

keep only one

const expressLayouts = require("express-ejs-layouts")

/* ***********************

* View Engine and Templates

*************************/

app.set("view engine", "ejs")
app.use(expressLayouts) // => use the single import
app.set("layout", "layouts/layout") // =>  remove the ./ prefix
Reasons:
  • Has code block (-0.5):
  • No latin characters (1):
  • Filler text (0.5): ***********************
  • Filler text (0): *************************
  • Low reputation (1):
Posted by: Labeeb OPC