Loïc Hoguin 62de3a62f9 Update to erlang.mk 1.0.0 10 лет назад
..
priv 09f1a8d55b Add an example with custom middleware 12 лет назад
src 6672ea0415 Review, improve and document the static files handler 11 лет назад
Makefile 62de3a62f9 Update to erlang.mk 1.0.0 10 лет назад
README.md abcc6e96d8 Update erlang.mk and update paths to start the release 10 лет назад
relx.config 36ba174224 Convert the markdown_middleware example to a release 11 лет назад

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/markdown_middleware_example/bin/markdown_middleware_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.