I have an application express.js. In the views folder I have a partials folder and layout folder.
I am using layouts = require("express-ejs-layouts"); in my server.js.
In partial I have a header.ejs and footer.ejs. and in layout folder i have a file including the following code:
<%- include('../partials/header'); %>
<%- body %>
<%- include('../partials/footer') %>
Indeed, in views i have several .ejs files and all the routes works fines, I can render my pages where They apply the css already existing in a public folder.
The problem when I add a new .ejs in views. I can render this page but the css is not applying.
I dont know why. Any suggestion?