| 1 |
= Middleware example |
| 2 |
|
| 3 |
To try this example, you need GNU `make` and `git` in your PATH. |
| 4 |
|
| 5 |
To build and run the example, use the following command: |
| 6 |
|
| 7 |
[source,bash] |
| 8 |
$ make run |
| 9 |
|
| 10 |
Then point your browser to http://localhost:8080/video.html |
| 11 |
|
| 12 |
Cowboy will serve all the files you put in the `priv` directory. |
| 13 |
If you request a `.html` file that has a corresponding `.md` file |
| 14 |
that has been modified more recently than the `.html` file, the |
| 15 |
Markdown file will be converted to HTML and served by Cowboy. |