<commit_before># hapi-react-views

A hapi view engine for React components.

By default, we render static markup. We can also choose to use
`React.renderToString`, preserving the `data-react-id` attributes so
re-mounting client side is possible.


## Install

```bash
$ npm install hapi-react-views
```

Note: Your project should have it's own `react` dependency installed. We depend
on `react` via `peerDependencies`.


## Usage

Configuring the server:

```js
var Path = require('path');
var Hapi = require('hapi');


var server = new Hapi.Server(3000);


server.views({
    engines: {
        jsx: require('hapi-react-views')
    },
    path: Path.join(__dirname, 'views')
});
```

Configuring with a CLI manifest using
[`visionary`](https://github.com/hapijs/visionary):

```json
{
    "servers": [{
        "port": 8080
    }],
    "plugins": {
        "visionary": {
            "engines": { "jsx": "hapi-react-views" },
            "path": "./views"
        }
    }
}
```


## License

MIT


## Don't forget

What you create with `hapi-react-views` is more important than `hapi-react-views`.
<commit_msg>dependency and test badges<commit_after># hapi-react-views

A hapi view engine for React components.

[![Dependency Status](https://david-dm.org/jedireza/hapi-react-views.svg?theme=shields.io)](https://david-dm.org/jedireza/hapi-react-views)
[![devDependency Status](https://david-dm.org/jedireza/hapi-react-views/dev-status.svg?theme=shields.io)](https://david-dm.org/jedireza/hapi-react-views#info=devDependencies)
[![Build Status](https://travis-ci.org/jedireza/hapi-react-views.svg?branch=master)](https://travis-ci.org/jedireza/hapi-react-views)

By default, we render static markup. We can also choose to use
`React.renderToString`, preserving the `data-react-id` attributes so
re-mounting client side is possible.


## Install

```bash
$ npm install hapi-react-views
```

Note: Your project should have it's own `react` dependency installed. We depend
on `react` via `peerDependencies`.


## Usage

Configuring the server:

```js
var Path = require('path');
var Hapi = require('hapi');


var server = new Hapi.Server(3000);


server.views({
    engines: {
        jsx: require('hapi-react-views')
    },
    path: Path.join(__dirname, 'views')
});
```

Configuring with a CLI manifest using
[`visionary`](https://github.com/hapijs/visionary):

```json
{
    "servers": [{
        "port": 8080
    }],
    "plugins": {
        "visionary": {
            "engines": { "jsx": "hapi-react-views" },
            "path": "./views"
        }
    }
}
```


## License

MIT


## Don't forget

What you create with `hapi-react-views` is more important than `hapi-react-views`.

{'fraction_non_alphanumeric': 0.15940409683426443, 'fraction_numerical': 0.0059590316573556795, 'mean_word_length': 3.447019867549669, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '3534043', 'n_tokens_mistral': 947, 'n_tokens_neox': 899, 'n_words': 223}