load-script

clojure.main

  • (load-script path)
Loads Clojure source from a file or resource given its path. Paths
beginning with @ or @/ are considered relative to classpath.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/main.clj:275 top

(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)))
Vars in clojure.main/load-script:
Used in 0 other vars

Comments top

No comments for load-script. Log in to add a comment.