Loïc Hoguin 36ba174224 Convert the markdown_middleware example to a release 11 лет назад
..
priv 09f1a8d55b Add an example with custom middleware 12 лет назад
src 36ba174224 Convert the markdown_middleware example to a release 11 лет назад
Makefile 36ba174224 Convert the markdown_middleware example to a release 11 лет назад
README.md 36ba174224 Convert the markdown_middleware example to a release 11 лет назад
relx.config 36ba174224 Convert the markdown_middleware example to a release 11 лет назад

README.md

Middleware example

To try this example, you need GNU make, git and relx 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.