Skip to content

Commit

Permalink
Add ejs engine configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranavtej committed Nov 28, 2023
1 parent 05dbe02 commit cc2741e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));

Expand Down

0 comments on commit cc2741e

Please sign in to comment.