diff --git a/README.md b/README.md index 87d0a8f..a416086 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ $ npm install hapi-sass --save ```javascript var Hapi = require('hapi'); var HapiSass = require('../index') +var Inert = require('inert'); var server = new Hapi.Server(); server.connection({ port: 1337 }); @@ -34,10 +35,10 @@ var options = { srcExtension: 'scss' }; -server.register({ +server.register([Inert, { register: HapiSass, options: options - } + }] , function (err) { if (err) throw err; server.start(function () { @@ -47,6 +48,8 @@ server.register({ ); ``` +See the `example/` folder for more. + ### Options: * `debug`: used to print statements to the console. Defaults to `false`