Last active
November 23, 2020 16:45
-
-
Save nodirshox/b6dccac47ce74157c2d05c6f65b6374d to your computer and use it in GitHub Desktop.
EJS template engine in Node JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Template engine | |
app.set('views', 'views'); | |
app.set('view engine', 'ejs'); | |
var bodyParser = require('body-parser'); | |
app.use(bodyParser.urlencoded({ extended: true })); | |
app.use(bodyParser.json()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment