Skip to content

Instantly share code, notes, and snippets.

@nodirshox
Last active November 23, 2020 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodirshox/b6dccac47ce74157c2d05c6f65b6374d to your computer and use it in GitHub Desktop.
Save nodirshox/b6dccac47ce74157c2d05c6f65b6374d to your computer and use it in GitHub Desktop.
EJS template engine in Node JS
// 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