Loïc Hoguin 62de3a62f9 Update to erlang.mk 1.0.0 10 years ago
..
priv 09f1a8d55b Add an example with custom middleware 12 years ago
src 6672ea0415 Review, improve and document the static files handler 11 years ago
Makefile 62de3a62f9 Update to erlang.mk 1.0.0 10 years ago
README.md abcc6e96d8 Update erlang.mk and update paths to start the release 10 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/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.