function | since v0.0-927 | Edit |
(load-javascript repl-env provides url)
Accepts a REPL environment, a list of namespaces, and a URL for a JavaScript file which contains the implementation for the list of namespaces. Will load the JavaScript file into the REPL environment if any of the namespaces have not already been loaded from the ClojureScript REPL.
(defn load-javascript
[repl-env provides url]
(browser-eval (slurp url)))