summaryrefslogtreecommitdiff
path: root/src/reverse_routing
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-02 00:56:29 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-02 00:56:29 +1000
commit523e00ccda6559c57cce87e488ecfcb722d1fc19 (patch)
tree71496206a04d596077edd5375d184cd36c408b11 /src/reverse_routing
parentef4627e39f9746fe27238c862294df94ab4e164b (diff)
Handle the case of the top-level route being a var
Diffstat (limited to 'src/reverse_routing')
-rw-r--r--src/reverse_routing/core.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reverse_routing/core.clj b/src/reverse_routing/core.clj
index 2907fb4..4299eba 100644
--- a/src/reverse_routing/core.clj
+++ b/src/reverse_routing/core.clj
@@ -8,7 +8,7 @@
(defn wrap-reverse-routing [handler & {:keys [root] :or {:root ""}}]
(fn [request]
- (binding [*lookup-route* (->> handler meta ::lookup)
+ (binding [*lookup-route* (->> handler deref-if-var meta ::lookup)
*root* root]
(handler request))))