0.8.0-alpha-1 • Fixed the double-called handler function bug • Tweaked a bunch of things related to testing with a Pedestal connector • Updated the embedded template to use http-kit • Updated the embedded template documentation Just pushed it all up to clojars.
Trying it out for cljdoc. I think maybe I'll need to study the new routing!
Yep. Cljdoc is doing something custom for routing (not sure why, before my time). I will report back if I figure out what I need to change for 0.8 compat.
Routing assets vs. endpoints is somewhat complicated; I prefer using routing table for both but that isn’t always practical, which is why still supporting doing it with interceptors. It does make me wonder if we need a way for a router to prefer static over dynamic when routing (rather than making it a collision, the way sawtooth does).
Thanks @hlship, Without too much muss or fuss, https://github.com/cljdoc/cljdoc/pull/1012/commits/84b705795bedd73f0eb72fb9659bb21716d524c7?diff=split&w=1.
I can probably clean this up a bit more... to conform to the way pedestal works now... not sure.
The PR for cljdoc upgrade to pedestal 0.8 is minimal: https://github.com/cljdoc/cljdoc/pull/1012, so thanks & congrats on all your hard work!
Cljdoc tests use the io.pedestal.test ns, which, after your rewrite, continues to work great!
I guess I should wait for at least a beta release before pushing to production, eh? simple_smile
YOLO
Or you could go big and switch to io.pedestal.connector and io.pedestal.http.http-kit.
Oh! That would be going big and small!