A hapi style plugin to interface Tapestry.
You can start with cloneing down the repo
git clone git@github.com:holidayextras/plugin-tapestry.git
or to install this plugin to your Hapi server you will need to add this line to your dependencies in your package.json
plugin-tapestry: 'git+ssh://git@github.com/holidayextras/plugin-tapestry.git'
After you will need to install this dependency and its dependencies
$ npm install
This plugin conforms to the hapijs plugin interface.
While bootstrapping your Hapi server, include the plugin like so:
server.pack.register( [
require( 'plugin-tapestry' )
], function() {
server.start( function() {
console.log( 'server started with plugin-tapestry plugin initialised' );
} );
} );
Inside your controllers you should then be able to do something like this:
var tapestryRequestDeferred = Q.defer();
request.server.plugins['plugin-tapestry'].makeItSo( tapestryRequestDeferred, options );
Code is linted checked against the style guide with make-up, running npm test will run all tests required.
Copyright (c) 2016 Shortbreaks Licensed under the MIT license.