Packages

Set up a `Plug` application with less boilerplate. `PlugAndPlay` is not a web framework – it's a small scaffold. You use `Plug` as you would normally, only *sooner*. Later, if you need more control, you can easily replace `PlugAndPlay` piece by piece or wholesale.

Current section

Files

Jump to
plug_and_play lib plug_and_play router.ex
Raw

lib/plug_and_play/router.ex

defmodule PlugAndPlay.Router do
defmacro __using__(_opts) do
quote do
use Plug.Router
plug :match
plug :dispatch
end
end
end