hapi-tailor-middleware is a tailor-middleware for hapi.js.
npm i hapi-tailor-middleware --save
yarn add hapi-tailor-middleware
server.register([{
register: require('hapi-tailor-middleware'),
options: {
templatesPath: 'templates',
},
}], (err) => {
if (err) {
throw err;
}
// ...
});
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create new Pull Request
Copyright (c) 2016-present Chris Helgert, Daniel Bayerlein. See License for details.