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