|
35 | 35 | [nextjournal.clojure-mode.keymap] |
36 | 36 | [nextjournal.markdown] |
37 | 37 | [nextjournal.markdown.transform] |
| 38 | + [reagent.core :as r] |
38 | 39 | [reagent.dom.server :as dom-server] |
39 | 40 | [reagent.ratom :as ratom] |
40 | 41 | [sci.configs.applied-science.js-interop :as sci.configs.js-interop] |
41 | | - [sci.configs.reagent.reagent :as sci.configs.reagent] |
42 | 42 | [sci.configs.cljs.pprint :as sci.configs.pprint] |
| 43 | + [sci.configs.reagent.reagent :as sci.configs.reagent] |
43 | 44 | [sci.core :as sci] |
44 | 45 | [sci.ctx-store] |
45 | 46 | [sci.nrepl.server :as nrepl] |
|
166 | 167 | :ns-aliases '{clojure.math cljs.math |
167 | 168 | cljs.repl clojure.repl |
168 | 169 | clojure.pprint cljs.pprint} |
169 | | - :namespaces (merge {'nextjournal.clerk.viewer viewer-namespace |
170 | | - 'nextjournal.clerk viewer-namespace ;; TODO: expose cljs variant of `nextjournal.clerk` with docstrings |
171 | | - 'nextjournal.clerk.sci-env {'load-string+ |
| 170 | + :namespaces (-> (merge {'nextjournal.clerk.viewer viewer-namespace |
| 171 | + 'nextjournal.clerk viewer-namespace ;; TODO: expose cljs variant of `nextjournal.clerk` with docstrings |
| 172 | + 'nextjournal.clerk.sci-env {'load-string+ |
172 | 173 |
|
173 | | - load-string+} |
174 | | - 'clojure.core {'read-string read-string |
175 | | - 'implements? (sci/copy-var implements?* core-ns) |
176 | | - 'time (sci/copy-var time core-ns) |
177 | | - 'system-time (sci/copy-var system-time core-ns)} |
178 | | - 'clojure.repl {'pst pst-stub}} |
179 | | - (sci-copy-nss |
180 | | - 'cljs.math |
181 | | - 'cljs.repl |
182 | | - 'nextjournal.clerk.parser |
183 | | - 'nextjournal.clerk.render |
184 | | - 'nextjournal.clerk.render.code |
185 | | - 'nextjournal.clerk.render.editor |
186 | | - 'nextjournal.clerk.render.hooks |
187 | | - 'nextjournal.clerk.render.navbar |
188 | | - 'nextjournal.clerk.render.table |
189 | | - 'nextjournal.clojure-mode |
190 | | - 'nextjournal.clojure-mode.keymap |
191 | | - 'nextjournal.clojure-mode.commands |
192 | | - 'nextjournal.clojure-mode.extensions.eval-region |
193 | | - 'nextjournal.markdown |
194 | | - 'nextjournal.markdown.transform) |
| 174 | + load-string+} |
| 175 | + 'clojure.core {'read-string read-string |
| 176 | + 'implements? (sci/copy-var implements?* core-ns) |
| 177 | + 'time (sci/copy-var time core-ns) |
| 178 | + 'system-time (sci/copy-var system-time core-ns)} |
| 179 | + 'clojure.repl {'pst pst-stub}} |
| 180 | + (sci-copy-nss |
| 181 | + 'cljs.math |
| 182 | + 'cljs.repl |
| 183 | + 'nextjournal.clerk.parser |
| 184 | + 'nextjournal.clerk.render |
| 185 | + 'nextjournal.clerk.render.code |
| 186 | + 'nextjournal.clerk.render.editor |
| 187 | + 'nextjournal.clerk.render.hooks |
| 188 | + 'nextjournal.clerk.render.navbar |
| 189 | + 'nextjournal.clerk.render.table |
| 190 | + 'nextjournal.clojure-mode |
| 191 | + 'nextjournal.clojure-mode.keymap |
| 192 | + 'nextjournal.clojure-mode.commands |
| 193 | + 'nextjournal.clojure-mode.extensions.eval-region |
| 194 | + 'nextjournal.markdown |
| 195 | + 'nextjournal.markdown.transform) |
195 | 196 |
|
196 | | - sci.configs.js-interop/namespaces |
197 | | - sci.configs.reagent/namespaces |
198 | | - sci.configs.pprint/namespaces)}) |
| 197 | + sci.configs.js-interop/namespaces |
| 198 | + sci.configs.reagent/namespaces |
| 199 | + sci.configs.pprint/namespaces) |
| 200 | + (assoc-in ['reagent.core 'unsafe-html] r/unsafe-html))}) |
199 | 201 |
|
200 | 202 | (defn ^:export eval-form [f] |
201 | 203 | (sci/binding [sci/ns @last-ns] |
|
0 commit comments