mirror of
https://github.com/metosin/reitit.git
synced 2025-12-28 04:18:24 +00:00
Push ns-records into user ns
This commit is contained in:
parent
36634abd39
commit
72a0ad2a5b
1 changed files with 2 additions and 1 deletions
|
|
@ -300,7 +300,8 @@
|
|||
(map-parameters keys)
|
||||
(let [sym (gensym "PathParams")
|
||||
ctor (symbol (str "map->" sym))]
|
||||
(eval `(do (defrecord ~sym ~(mapv (comp symbol name) keys)) (~ctor {})))))))))
|
||||
(binding [*ns* (find-ns 'user)]
|
||||
(eval `(do (defrecord ~sym ~(mapv (comp symbol name) keys)) (~ctor {}))))))))))
|
||||
|
||||
(defn insert
|
||||
"Returns a trie with routes added to it."
|
||||
|
|
|
|||
Loading…
Reference in a new issue