Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

chrishelgert/hapi-tailor-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapi-tailor-middleware

npm version Build Status Build status codecov Standard - JavaScript Style Guide

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

  1. Fork it
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create new Pull Request

License

Copyright (c) 2016-present Chris Helgert, Daniel Bayerlein. See License for details.