Extracts a list of imports or libspecs from an ns form. A libspec looks like this:
{:ns my-ns :as my-alias :refer [referred symbols here] ; or :all :rename {:rename :spec} :only [only these symbols]
;; rest are cljs specific :refer-macros [referred macros here] :require-macros true}
Extracts a list of imports or libspecs from an ns form. A libspec looks like this: {:ns my-ns :as my-alias :refer [referred symbols here] ; or :all :rename {:rename :spec} :only [only these symbols] ;; rest are cljs specific :refer-macros [referred macros here] :require-macros true}
(aliases libspecs)
Return a map of namespace aliases given a seq of libspecs.
e.g {str clojure.string}
Return a map of namespace aliases given a seq of libspecs. e.g {str clojure.string}
(get-libspecs-from-file f)
(get-libspecs-from-file dialect f)
Return all the libspecs in a file.
This is the concatenation of all the libspecs found in the use, use-macros, require and require-macros forms.
Note that no post-processing is done so there might be duplicates or libspecs which could have been combined or eliminated as unused.
Dialect is either :clj or :cljs, the default is :clj.
Return all the libspecs in a file. This is the concatenation of all the libspecs found in the use, use-macros, require and require-macros forms. Note that no post-processing is done so there might be duplicates or libspecs which could have been combined or eliminated as unused. Dialect is either :clj or :cljs, the default is :clj.
(with-libspecs-from ns-form key & body)
Bind the symbol libspecs to the libspecs extracted from the key in ns-form and execute body.
Bind the symbol libspecs to the libspecs extracted from the key in ns-form and execute body.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close