A fully customizable Hapi server for Docpad.
npm install docpad-plugin-hapiA fully customizable Hapi server for docpad.
In docpad.coffee or docpad.js, you can directly add routes as specified in Hapi Documentation
Hapi plugins can easily be loaded. Plugins can access docpad through server.app.docpad. For example, to get docpad configuration, ``server.app.docpad.getConfig()` or in the router `request.server.app.docpad.getConfig()`
Also, server configuration can be overriden with the 'config' key
`coffeeRequire Joi for route validation
Joi = require('joi');
$3
Clean URLs are enabled by default for files with .html extension. To change Clean URL extension, set plugin settings property "defaultExtension"
$3
Change Procfile to
`
web: node_modules/docpad-plugin-hapi/bin/docpad-hapi-server
`$3
`
forever start node_modules/docpad-plugin-hapi/lib/bin/docpad-hapi-server.js
``