summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reverse_routing/core.clj3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reverse_routing/core.clj b/src/reverse_routing/core.clj
index 377d75e..2907fb4 100644
--- a/src/reverse_routing/core.clj
+++ b/src/reverse_routing/core.clj
@@ -43,7 +43,8 @@
path-keys (vec (:keys (clout.core/route-compile string-path)))
keylen (count path-keys)
lookup-fn `(fn [[route-name# args-count#]]
- (let [r# (#'lookup-route [route-name# (- args-count# ~keylen)]
+ (let [~args (repeat nil) ;; hacky, but necessary - provide nil values for args
+ r# (#'lookup-route [route-name# (- args-count# ~keylen)]
~@routes)
{uri# :uri, args# :args} r#]
(if r#