Skip to content

Instantly share code, notes, and snippets.

@willrax
Last active March 11, 2016 12:30
Show Gist options
  • Save willrax/00aad6542e5fd1e72d84 to your computer and use it in GitHub Desktop.
Save willrax/00aad6542e5fd1e72d84 to your computer and use it in GitHub Desktop.
defmodule Plugger.Router do
plug Plugger.SayHello, [name: “Will”]
end
defmodule Plugger.SayHello do
def init(opts), do: opts
def call(conn, opts) do
IO.puts opts[:name]
conn
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment