Loads Clojure source from a file or resource given its path. Paths
beginning with @ or @/ are considered relative to classpath.
(defn load-script
"Loads Clojure source from a file or resource given its path. Paths
beginning with @ or @/ are considered relative to classpath."
[^String path]
(if (.startsWith path "@")
(RT/loadResourceScript
(.substring path (if (.startsWith path "@/") 2 1)))
(Compiler/loadFile path)))
Comments top
No comments for load-script. Log in to add a comment.