Loïc Hoguin 96755dd973 No need for relx in path for examples anymore 11 years ago
..
priv 09f1a8d55b Add an example with custom middleware 12 years ago
src 36ba174224 Convert the markdown_middleware example to a release 11 years ago
Makefile 36ba174224 Convert the markdown_middleware example to a release 11 years ago
README.md 96755dd973 No need for relx in path for examples anymore 11 years ago
relx.config 36ba174224 Convert the markdown_middleware example to a release 11 years ago

README.md

Middleware example

To try this example, you need GNU make and git in your PATH.

To build the example, run the following command:

$ make

To start the release in the foreground:

$ ./_rel/bin/hello_world_example console

Then point your browser at http://localhost:8080/video.html.

Cowboy will serve all the files you put in the priv directory. If you request a .html file that has a corresponding .md file that has been modified more recently than the .html file, the Markdown file will be converted to HTML and served by Cowboy.