<commit_before>#hapi-router
[![Build Status](https://travis-ci.org/ethanmick/hapi-router-coffee.svg?branch=master)](https://travis-ci.org/ethanmick/hapi-router-coffee.svg?branch=master)

An Opinionated Route Loader for [Hapi](https://github.com/hapijs/hapi) for CoffeeScript files.

This fork does two things, which may interest you:
1. Written in CoffeeScript (and **not** compiled to JS), so it can autoload .coffee files.
2. Allows you to pass options to the routes, and merge in the options already on the route.

## Setup

```bash
$ npm install hapi-router-coffee --save
```

I assume you're writing in CoffeeScript, right?
```coffee
server.register {
  register: require('hapi-router')<commit_msg>Coffee.<commit_after># Hapi Router Coffee
[![Build Status](https://travis-ci.org/ethanmick/hapi-router-coffee.svg?branch=master)](https://travis-ci.org/ethanmick/hapi-router-coffee.svg?branch=master)

An Opinionated Route Loader for [Hapi](https://github.com/hapijs/hapi) for CoffeeScript files.

This fork does two things, which may interest you:
1. Written in CoffeeScript (and **not** compiled to JS), so it can autoload .coffee files.
2. Allows you to pass options to the routes, and merge in the options already on the route.

## Setup

```bash
$ npm install hapi-router-coffee --save
```

I assume you're writing in CoffeeScript, right?
```coffee
server.register {
  register: require('hapi-router')
{'fraction_non_alphanumeric': 0.12926136363636365, 'fraction_numerical': 0.002840909090909091, 'mean_word_length': 4.920168067226891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '3966468', 'n_tokens_mistral': 486, 'n_tokens_neox': 458, 'n_words': 144}