Skip to content

Instantly share code, notes, and snippets.

@sirdarthvader
Created October 27, 2018 17:31
Show Gist options
  • Save sirdarthvader/61b2a931b5803cad160b97cae45f68a6 to your computer and use it in GitHub Desktop.
Save sirdarthvader/61b2a931b5803cad160b97cae45f68a6 to your computer and use it in GitHub Desktop.
const exphbs = require('express-handlebars');
// Handlebars Middleware
app.engine(
'handlebars',
exphbs({
defaultLayout: 'main',
})
);
app.set('view engine', 'handlebars');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment