Plug: forward options to nested child plugs

Basically plug MyModule generates essentially (not really, but this gets the point across more simply) def do_plug(state), do: MyModule.call(state, unquote(MyModule.init([])). What you could do is generate a new location-sensitive module name dynamically generated, generate a proxy module that sets up the pipeline then pass the name of it back in the options, then call it inside your call to do the actual work.

Hard to give a good example currently, maybe if I get time later to actually write it out, poke me if so?