mirror of
https://github.com/metosin/reitit.git
synced 2026-01-29 01:10:34 +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)
|
(map-parameters keys)
|
||||||
(let [sym (gensym "PathParams")
|
(let [sym (gensym "PathParams")
|
||||||
ctor (symbol (str "map->" sym))]
|
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
|
(defn insert
|
||||||
"Returns a trie with routes added to it."
|
"Returns a trie with routes added to it."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue