From cc2741e0912e4e6e47e5a46ae75b346d442a5b63 Mon Sep 17 00:00:00 2001 From: Pranav Teja Date: Tue, 28 Nov 2023 17:26:22 +0530 Subject: [PATCH] Add ejs engine configuration --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9c4ef13..e3fd6da 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ const e = require('express'); const app = express(); app.set("view-engine","ejs"); +app.engine('ejs', require('ejs').__express); app.use(express.static(__dirname+'/public')) app.use(bodyParser.urlencoded({ extended: true }));