Doubt related to ejs
Where will the following ejs file would be looking for the css file ?( css file is in public/css directory of the main project folder and ejs file is in views/pages directory ) <head> <link rel="stylesheet" href="./css/input_type.css"> <title></title> What I think is that it is looking for css directory in the same pages folder where it doesn't exists but actually this is not the case as everything works fine when i run the app, And here is the code for serving these files ,which I believe these two lines app.use(express.static('public')) and res.render('pages/input_type') are doing something which I don't understand at all ,any help is appreciated , var express=require('express'); const ejs=require('ejs'); var app=express(); app.use(express.static('public')); app.set('view engine','ejs'); app.listen('8080',(err)=>{ if(err){throw err}; console.log("listening on port 8080"); }) app.get('/',(req,res)=>{ res.render('pages/input_type'); });