app.js
const ejs = require("ejs");
app.set('view engine', 'ejs');
app.set('views', './views');
app.use('/public',express.static(__dirname+'/public'));
router
router.get("/", function(req,res){
res.render(('index'),{title:"EJS main page"});
})
public/main.css
a{
color:blue;
}
views/index.ejs --> not .html
html5 option +
<link href="/public/main.css" rel="stylesheet">
<a><%= locals.title %></a>
result
EJS main page(color is blue)