extend/cowboy — pull request #207 by ngauthier (2012-04-25 04:38:42+00:00)
Title: serve individual files under different route paths

Hi all,

This allows you to set file directives in the Dispatch, for example:

```erlang
%% Serve index.html from the /index route:
{[<<"index">>], cowboy_http_static,
[{file}, <<"index.html">>]}
'''
```

This is the first "real" erlang code I've ever written, so please give it a thorough review. I don't think I did the best job as far as code reusability and branching.

Also, it seems you can't specify "" or "/" as the path, which was the main goal of my work: to allow serving a static index.html file from the root url. Oh well. Maybe another night :-)

xoxo @ngauthier