ibdknox/noir — pull request #61 by Raynes (2011-12-22 07:54:13+00:00)
Title: Flash

We can use this pull request as a way to discuss issues and such. This is *not* ready to be pulled and is totally broken. I just think pull requests are better than emails for these kinds of things.

So, this is my WIP on the new flash functionality. When I use it, every request results in two wrap-noir-flash triggers. So, even with this `routes` stuff in `wrap-spec-routes`, it still triggers the flash middleware when the browser asks for the favicon. I'm guessing that's because all of the middleware still has to execute before the spec middleware gets a chance to have its stuff injected, which makes it all kind of a moot point.

The way all of this works is really confusing the hell out of me, so I'm sure this is all due to my inability to understand how routes and middleware function at 2AM. I might be able to figure it out tomorrow, but I thought I'd throw this here in case there are some simple things that I'm missing that might be obvious to you.