Allow setting locals prior to harp processing#260
Allow setting locals prior to harp processing#260david-martin wants to merge 1 commit intosintaxi:masterfrom david-martin:locals
Conversation
|
+1 I would want to use this. If this gets the go-ahead, I volunteer to write tests for this if david-martin doesn't feel in the mood :) Cheers, |
|
@DTrejo can you point me in the right direction for where to start with tests? |
|
As I haven't seen anyone comment that this would be a welcome addition, I might consider holding off on putting more effort into this? As for writing tests for this, I'd probably copy https://github.com/sintaxi/harp/blob/master/test/multihost.js to Does that kind of make sense? I suspect that this will be more complicated than we expect, as harp sometimes does redirects, and the route you attach to the express server may yield a redirect in harp-land to another route that harp ends up handing (e.g. somethings What a wall of text, sorry! Cheers, |
e.g.