From 523e00ccda6559c57cce87e488ecfcb722d1fc19 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Mon, 2 Sep 2013 00:56:29 +1000 Subject: Handle the case of the top-level route being a var --- src/reverse_routing/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reverse_routing/core.clj') 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)))) -- cgit v1.2.3