-
-
Save marr/ad379d8957aede96a2cb24153779b4a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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