BetterParams – Clean request params in Elixir 🙌
BetterParams is a simple Elixir Plug that lets you pattern match on Request params in controllers using Atom keys instead of String ones.
# web/controllers/some_controller.ex
def show(conn, %{id: id}) do
# do something
end
Yep, that’s it. I wrote it because of my OCD. 😛
Read next Keeping big Contexts small with metaprogramming in Elixir