<commit_before># hapi-ember-fastboot

Ember Fastboot handler for hapi.js

[![Build Status](https://travis-ci.org/webstronauts/hapi-ember-fastboot.svg?branch=master)](https://travis-ci.org/webstronauts/hapi-ember-fastboot)

## Example

```js
const Hapi = require('hapi');
const Fastboot = require('hapi-ember-fastboot');

const server = new Hapi.Server();
server.connection({ port: 3000 });

server.register(Fastboot, () => {});

server.route({
    method: 'GET',
    path: '/{path*}',
    handler: {
        fastboot: {
            distPath: 'path/to/your/ember/app',
        }
    }
});

server.start((err) => {

    if (err) {
        throw err;
    }

    console.log('Server running at:', server.info.uri);
});
```
<commit_msg>Added note about options<commit_after># hapi-ember-fastboot

Ember Fastboot handler for hapi.js

For more information about Fastboot, see [ember-fastboot-server](https://github.com/ember-fastboot/ember-fastboot-server), the underlaying library used for rendering the Ember application to static HTML.

[![Build Status](https://travis-ci.org/webstronauts/hapi-ember-fastboot.svg?branch=master)](https://travis-ci.org/webstronauts/hapi-ember-fastboot)

## Usage

```js
const Hapi = require('hapi');
const Fastboot = require('hapi-ember-fastboot');

const server = new Hapi.Server();
server.connection({ port: 3000 });

server.register(Fastboot, () => {});

server.route({
    method: 'GET',
    path: '/{path*}',
    handler: {
        fastboot: {
            distPath: 'path/to/your/ember/app',
        }
    }
});

server.start((err) => {

    if (err) {
        throw err;
    }

    console.log('Server running at:', server.info.uri);
});
```

## Options

The fastboot handler object has the following properties:

* `distPath` absolute path to your distributed Ember application directory.
* `errorHandler` an optional error handler to handle any errors thrown by the Fastboot instance. If none given, the handler throws a 500 error by default.

## License

MIT, see LICENSE

{'fraction_non_alphanumeric': 0.15530114484818316, 'fraction_numerical': 0.0054753608760577405, 'mean_word_length': 3.610091743119266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '392780', 'n_tokens_mistral': 669, 'n_tokens_neox': 646, 'n_words': 155}