Last active
March 11, 2016 12:30
-
-
Save willrax/00aad6542e5fd1e72d84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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