Fork me on GitHub
#yada
<
2016-05-03
>
malcolmsparks08:05:58

It's a data structure so you could do it a number of ways. One idea is to mark routes with metadata and clojure.walk/postwalk it, replacing any routes you want ignored with 'false'

xcthulhu14:05:09

Actually, I have a solution...

xcthulhu14:05:40

[[(if debugging? ["devcards.html" (fn [req] ...)] [])]] works

xcthulhu14:05:45

So [] is like a skip

xcthulhu14:05:54

Another way is

`[[~@(if debugging? [["devcards.html" (fn [req] ...)]] [])]]
... but then I figured out the other one which is less annoying