Chris,
Awesome solution! So simple. From a marketing perspective it would be interesting if Phoenix supported this more natively someday: Phoenix - A micro/macro framework that scales as your code base and users grow.
I heard that there are plans for the code generators to create even smaller projects, this could help to remove the controllers
folder if needed. I you could optionally code in Plugs style, the most bare-bone Phoenix project would just need a web folder like this
web
| - router.ex
| - web.ex
Is there a way to enable this behavior when to get, post, put, etc, macros have a do
block?
There is a certain appeal to microframeworks, single file, functions are routes, etc. Phoenix could totally nail this.