On Jun 30, 4:13 pm, Mark McGranaghan <
mmcgr...@gmail.com> wrote:
> I quietly updated ring.file-info a while back to be able to handle
> custom mimetypes like the ones described above.
Ah, I didn't realise that. Though I was also thinking about the
possibility of middleware overlapping.
> James, what exactly were you thinking about in terms of consolidating
> middleware? It would be a shame to have stuff like this implemented
> twice; one of the main benefits or using Ring is that everyone -
> Compojure users and otherwise - can share middleware.
Those are my thoughts too. I was hoping we could reach a consensus
between the style of middleware in the Ring namespace:
(middleware-type/wrap options... handler)
And the style in Compojure:
(with-middleware-type handler options...)
Then we could start consolidating middleware and other useful
functions into Ring. Parts of Compojure are generic enough that
perhaps other frameworks would benefit from them.
Do you mind if I email you some suggestions? Obviously we're two
different programmers and won't agree on everything, but hopefully we
can create a strong basis for people to base their web frameworks and
libraries on, whilst being careful to remain generic enough to
accommodate any style of framework.
- James