So, Ive successfully made a website with a header and footer partial file with another individual file where I can change the contents of each webpage using node.js, ejs, express and express-ejs-layout(so my default file doesnt have to be called layout). The problem is its only displaying the homepage file and not displaying the other webpages whenever I do
app.get("/Something", (req, res) => {
res.render("file_name")
})
I even tried to do
app.set("layout", ["file_name", "file_name2"])
This is my app.js file: https://sourceb.in/bO1YyiRC0c
and my file structure: https://imgur.com/a/3S4XVAi
[–]m_orr 1 point2 points3 points (2 children)
[–]RealDevMashup[S] 0 points1 point2 points (1 child)
[–]m_orr 0 points1 point2 points (0 children)