This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-22
Channels
- # beginners (17)
- # cider (3)
- # cljsrn (18)
- # clojure (76)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-uk (5)
- # clojurescript (33)
- # core-async (10)
- # datomic (31)
- # duct (5)
- # emacs (4)
- # fulcro (1)
- # graphql (5)
- # keechma (3)
- # off-topic (36)
- # onyx (1)
- # re-frame (4)
- # reagent (9)
- # reitit (9)
- # shadow-cljs (11)
- # vim (2)
Middleware ordering is a challenge. Chains usually require some implicit order and if not setup correctly, fail at runtime.
For pedestal, there is angel-interceptor to reorder interceptors and Macchiato has similar for middleware (by @yogthos).
Reitit already has the hook to transform the chain, and there could a spesification to declare mw/interceptor dependencies. Would enable automatic reordering. Is this a good idea? https://github.com/metosin/reitit/issues/33
Should there be a helper for serving static files in reitit-ring
? where is the line between “routing-lib” and “batteries-included”? poked with this, some code & perf in https://github.com/metosin/reitit/issues/71
also, this would only work with Clojure. Everything else works with ClojureScript too. Hmm.
currently using (-> (create-default-handler) (wrap-resource root) (wrap-defaults site-defaults))
@U051951T6 wrap-resource
first scans the classpath for resources, then fallbacks to “normal handler”. I think this is wrong: the resources should be served if nothing else matches. See some perf numbers at https://gist.github.com/ikitommi/f89a400e4670409c98358f425971ed63