Skip to main content

copy-ns

macro

sci.core/copy-ns

(copy-ns [ns-sym sci-ns] [ns-sym sci-ns opts])
Returns map of names to SCI vars as a result of copying public Clojure vars from ns-sym (a symbol). Attaches sci-ns (result of sci/create-ns) to meta. Copies :name, :macro :doc, :no-doc and :argslists metadata. Options: - :exclude: a seqable of names to exclude from the namespace. Defaults to none. - :copy-meta: a seqable of keywords to copy from the original var meta. Use :all instead of a seqable to copy all. Defaults to [:doc :arglists :macro]. - :exclude-when-meta: seqable of keywords; vars with meta matching these keys are excluded. Defaults to [:no-doc :skip-wiki] The selection of vars is done at compile time which is mostly important for ClojureScript to not pull in vars into the compiled JS. Any additional vars can be added after the fact with sci/copy-var manually.

No examples yet. Be the first to add one!