Open falood opened 6 years ago
Taking some time to look at this, I'm opting towards option 1.
I'm leaning towards it because it's a bit self-documenting and reads a bit more idiomatically for Elixir. In order to GET the route named "path", invoke this function.
The second one seems a bit more magical and doesn't give an explicit contract for the route handler.
I also like option 1 better.
but it will be quite different with plug
router.
Hidden variables or definite ones? Or better ideas?