Skip to content

Instantly share code, notes, and snippets.

@marr
Created August 2, 2017 23:17
Show Gist options
  • Save marr/ad379d8957aede96a2cb24153779b4a2 to your computer and use it in GitHub Desktop.
Save marr/ad379d8957aede96a2cb24153779b4a2 to your computer and use it in GitHub Desktop.
// Use `.hbs` for extensions and find partials in `views/partials`.
const hbs = require('express-hbs');
app.engine('hbs', hbs.express4({
partialsDir: __dirname + '/views/partials'
}));
app.set('view engine', 'hbs');
app.set('views', __dirname + '/views');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment