-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plug.Router macros and functional plugs #1237
Comments
You are right, the |
Hi hi, thanks for Plug and Elixir 😎! Trying my hand at this in #1245 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm super new to elixir, so forgive me if the below doesn't make sense.
If I attempt to use a functional plug with the router macros e.g.
match
I get the error** (UndefinedFunctionError) function :foo.init/1 is undefined (module :foo is not available)
. I'm pretty sure the issue is not with my plug, as it works when using the regular plug macro e.g.plug :foo
.Minimal reproduction below
If I'm not making any errors then please consider this a feature request - The functional plugs are much more simple/concise, so it would be great to be able to use them in more places, if not everywhere, just for the sake of consistency.
The text was updated successfully, but these errors were encountered: