Skip to main content

Namespaces

  • create-ns

    Create a new namespace named by the symbol. Bootstrap only.

  • import

    import-list => (closure-namespace constructor-name-symbols*) For each name in constructor-name-symbols, adds a mapping ...

  • in-ns

    Sets *cljs-ns* to the namespace named by the symbol, creating it if needed.

  • load

    Loads Clojure code from resources in classpath. A path is interpreted as classpath-relative if it begins with a slash or...

  • load-file

    Sequentially read and evaluate the set of forms contained in the file.

  • munge

    Munge symbol or string `name` for safe use in JavaScript. - Replaces '..' with '_DOT__DOT_'. - Appends '$' to JavaScrip...

  • namespace

    Returns the namespace String of a symbol or keyword, or nil if not present.

  • ns

    You must currently use the ns form only with the following caveats * You must use the :only form of :use * :require...

  • ns-imports

    Returns a map of the import mappings for the namespace.

  • ns-interns

    Returns a map of the intern mappings for the namespace.

  • ns-name

    Returns the name of the namespace, a Namespace object. Bootstrap only.

  • ns-publics

    Returns a map of the public intern mappings for the namespace.

  • ns-unmap

    Removes the mappings for the symbol from the namespace.

  • refer-clojure

    Refers to all the public vars of `cljs.core`, subject to filters. Filters can include at most one each of: :exclude lis...

  • require

    Loads libs, skipping any that are already loaded. Each argument is either a libspec that identifies a lib or a flag that...

  • use

    Like require, but referring vars specified by the mandatory :only option. Example: The following would load the librar...

  • find-ns

    Returns the namespace named by the symbol or nil if it doesn't exist. Bootstrap only.

  • resolve

    Returns the var to which a symbol will be resolved in the namespace else nil.