CLJS
basic-lein-cljs.core
cljs.analyzer
cljs.compiler
CLJS
cljs.core
CLJS
cljs.core.async
CLJS
cljs.core.async.impl.buffers
CLJS
cljs.core.async.impl.channels
CLJS
cljs.core.async.impl.dispatch
CLJS
cljs.core.async.impl.ioc-helpers
CLJS
cljs.core.async.impl.protocols
CLJS
cljs.core.async.impl.timers
cljs.env
cljs.externs
CLJS
cljs.js
cljs.js-deps
CLJS
cljs.pprint
CLJS
cljs.reader
CLJS
cljs.repl
cljs.source-map
CLJS
cljs.source-map
cljs.source-map.base64
CLJS
cljs.source-map.base64
cljs.source-map.base64-vlq
CLJS
cljs.source-map.base64-vlq
CLJS
cljs.spec.alpha
CLJS
cljs.spec.gen.alpha
cljs.tagged-literals
CLJS
cljs.tools.reader
CLJS
cljs.tools.reader.edn
CLJS
cljs.tools.reader.impl.commons
CLJS
cljs.tools.reader.impl.errors
CLJS
cljs.tools.reader.impl.inspect
CLJS
cljs.tools.reader.impl.utils
CLJS
cljs.tools.reader.reader-types
cljs.util
clojure.core
clojure.core.async
clojure.core.async.impl.buffers
clojure.core.async.impl.channels
clojure.core.async.impl.concurrent
clojure.core.async.impl.dispatch
clojure.core.async.impl.exec.threadpool
clojure.core.async.impl.ioc-macros
clojure.core.async.impl.mutex
clojure.core.async.impl.protocols
clojure.core.async.impl.timers
clojure.core.cache
clojure.core.memoize
clojure.core.protocols
clojure.core.server
clojure.data.json
clojure.data.priority-map
clojure.edn
clojure.instant
clojure.java.io
clojure.main
clojure.pprint
clojure.reflect
clojure.repl
clojure.set
CLJS
clojure.set
clojure.spec.alpha
clojure.spec.gen.alpha
clojure.string
CLJS
clojure.string
clojure.tools.analyzer
clojure.tools.analyzer.ast
clojure.tools.analyzer.env
clojure.tools.analyzer.jvm
clojure.tools.analyzer.jvm.utils
clojure.tools.analyzer.passes
clojure.tools.analyzer.passes.add-binding-atom
clojure.tools.analyzer.passes.cleanup
clojure.tools.analyzer.passes.constant-lifter
clojure.tools.analyzer.passes.elide-meta
clojure.tools.analyzer.passes.emit-form
clojure.tools.analyzer.passes.jvm.analyze-host-expr
clojure.tools.analyzer.passes.jvm.annotate-host-info
clojure.tools.analyzer.passes.jvm.annotate-loops
clojure.tools.analyzer.passes.jvm.annotate-tag
clojure.tools.analyzer.passes.jvm.box
clojure.tools.analyzer.passes.jvm.classify-invoke
clojure.tools.analyzer.passes.jvm.constant-lifter
clojure.tools.analyzer.passes.jvm.emit-form
clojure.tools.analyzer.passes.jvm.fix-case-test
clojure.tools.analyzer.passes.jvm.infer-tag
clojure.tools.analyzer.passes.jvm.validate
clojure.tools.analyzer.passes.jvm.validate-loop-locals
clojure.tools.analyzer.passes.jvm.validate-recur
clojure.tools.analyzer.passes.jvm.warn-on-reflection
clojure.tools.analyzer.passes.source-info
clojure.tools.analyzer.passes.trim
clojure.tools.analyzer.passes.uniquify
clojure.tools.analyzer.passes.warn-earmuff
clojure.tools.analyzer.utils
clojure.tools.cli
clojure.tools.namespace.dependency
clojure.tools.namespace.file
clojure.tools.namespace.find
clojure.tools.namespace.parse
clojure.tools.namespace.track
clojure.tools.reader
clojure.tools.reader.default-data-readers
clojure.tools.reader.impl.commons
clojure.tools.reader.impl.errors
clojure.tools.reader.impl.inspect
clojure.tools.reader.impl.utils
clojure.tools.reader.reader-types
clojure.walk
CLJS
clojure.walk
dynadoc.aliases
dynadoc.common
dynadoc.core
CLJS
dynadoc.core
dynadoc.example
CLJS
dynadoc.state
dynadoc.static
dynadoc.utils
dynadoc.watch
eval-soup.clojail
eval-soup.core
CLJS
eval-soup.core
CLJS
figwheel.client
CLJS
figwheel.client.file-reloading
CLJS
figwheel.client.heads-up
CLJS
figwheel.client.socket
CLJS
figwheel.client.utils
hawk.core
hawk.watcher
html-soup.core
ns-tracker.core
ns-tracker.dependency
ns-tracker.nsdeps
ns-tracker.parse
CLJS
oakcljs.tools.reader
CLJS
oakcljs.tools.reader.impl.commons
CLJS
oakcljs.tools.reader.impl.errors
CLJS
oakcljs.tools.reader.impl.inspect
CLJS
oakcljs.tools.reader.impl.utils
CLJS
oakcljs.tools.reader.reader-types
oakclojure.tools.reader
oakclojure.tools.reader.default-data-readers
oakclojure.tools.reader.impl.commons
oakclojure.tools.reader.impl.errors
oakclojure.tools.reader.impl.inspect
oakclojure.tools.reader.impl.utils
oakclojure.tools.reader.reader-types
org.httpkit.server
CLJS
paren-soup.console
CLJS
paren-soup.core
CLJS
paren-soup.dom
CLJS
paren-soup.instarepl
CLJS
reagent.core
CLJS
reagent.debug
CLJS
reagent.dom
CLJS
reagent.impl.batching
CLJS
reagent.impl.component
CLJS
reagent.impl.template
CLJS
reagent.impl.util
CLJS
reagent.ratom
ring.middleware.content-type
ring.middleware.file
ring.middleware.head
ring.middleware.keyword-params
ring.middleware.params
ring.middleware.reload
ring.middleware.resource
ring.util.codec
ring.util.io
ring.util.mime-type
ring.util.parsing
ring.util.request
ring.util.response
ring.util.time
rum.core
CLJS
rum.core
rum.cursor
rum.derived-atom
rum.server-render
rum.util
sablono.compiler
CLJS
sablono.core
sablono.normalize
sablono.util
tag-soup.core

cljs.js

*eval-fn*

Each runtime environment provides various ways to eval JavaScript source. Whatever function *eval-fn* is bound to will be passed a map containing the following keys: :source - the source of the library (string) :name - used to unique identify the script (symbol) :cache - if the source was originally ClojureScript, will be given the analysis cache. The result of evaluation should be the return value.

*load-fn*

Each runtime environment provides a different way to load a library. Whatever function *load-fn* is bound to will be passed two arguments - a map and a callback function: The map will have the following keys: :name - the name of the library (a symbol) :macros - modifier signaling a macros namespace load :path - munged relative library path (a string) It is up to the implementor to correctly resolve the corresponding .cljs, .cljc, or .js resource (the order must be respected). If :macros is true resolution should only consider .clj or .cljc resources (the order must be respected). Upon resolution the callback should be invoked with a map containing the following keys: :lang - the language, :clj or :js :source - the source of the library (a string) :file - optional, the file path, it will be added to AST's :file keyword (but not in :meta) :cache - optional, if a :clj namespace has been precompiled to :js, can give an analysis cache for faster loads. :source-map - optional, if a :clj namespace has been precompiled to :js, can give a V3 source map JSON If the resource could not be resolved, the callback should be invoked with nil.

(analyze-str state source cb)

(analyze-str state source name cb)

(analyze-str state source name opts cb)

Analyze ClojureScript source. The compiler state will be populated with the results of analyzes. The parameters: state (atom) the compiler state source (string) the ClojureScript source name (symbol or string) optional, the name of the source opts (map) compilation options. :eval - eval function to invoke, see *eval-fn* :load - library resolution function, see *load-fn* :source-map - set to true to generate inline source map information :def-emits-var - sets whether def (and derived) forms return either a Var (if set to true) or the def init value (if false). Defaults to false. :checked-arrays - if :warn or :error, checks inferred types and values passed to aget/aset. Logs for incorrect values if :warn, throws if :error. Defaults to false. :static-fns - employ static dispatch to specific function arities in emitted JavaScript, as opposed to making use of the `call` construct. Defaults to false. :fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for unknown functions, but instead direct invokes via `f(a0,a1...)`. Defaults to `false`. :target - use `:nodejs` if targeting Node.js. Takes no other options at the moment. :ns - optional, the namespace in which to evaluate the source. :verbose - optional, emit details from compiler activity. Defaults to false. :context - optional, sets the context for the source. Possible values are `:expr`, `:statement` and `:return`. Defaults to `:expr`. cb (function) callback, will be invoked with a map. If successful the map will contain a key :value, the actual value is not meaningful. If unsuccessful the map will contain a key :error with an ex-info instance describing the cause of failure.

(compile-str state source cb)

(compile-str state source name cb)

(compile-str state source name opts cb)

Compile ClojureScript source into JavaScript. The parameters: state (atom) the compiler state source (string) the ClojureScript source name (symbol or string) optional, the name of the source opts (map) compilation options. :eval - eval function to invoke, see *eval-fn* :load - library resolution function, see *load-fn* :source-map - set to true to generate inline source map information :def-emits-var - sets whether def (and derived) forms return either a Var (if set to true) or the def init value (if false). Default is false. :checked-arrays - if :warn or :error, checks inferred types and values passed to aget/aset. Logs for incorrect values if :warn, throws if :error. Defaults to false. :static-fns - employ static dispatch to specific function arities in emitted JavaScript, as opposed to making use of the `call` construct. Defaults to false. :fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for unknown functions, but instead direct invokes via `f(a0,a1...)`. Defaults to `false`. :target - use `:nodejs` if targeting Node.js. Takes no other options at the moment. :ns - optional, the namespace in which to evaluate the source. :verbose - optional, emit details from compiler activity. Defaults to false. :context - optional, sets the context for the source. Possible values are `:expr`, `:statement` and `:return`. Defaults to `:expr`. cb (function) callback, will be invoked with a map. If successful the map will contain a key :value with the compilation result (string). If unsuccessful the map will contain a key :error with an ex-info instance describing the cause of failure.

(eval state form cb)

(eval state form opts cb)

Evaluate a single ClojureScript form. The parameters: state (atom) the compiler state form (s-expr) the ClojureScript source opts (map) compilation options. :eval - eval function to invoke, see *eval-fn* :load - library resolution function, see *load-fn* :source-map - set to true to generate inline source map information :def-emits-var - sets whether def (and derived) forms return either a Var (if set to true) or the def init value (if false). Default is false. :checked-arrays - if :warn or :error, checks inferred types and values passed to aget/aset. Logs for incorrect values if :warn, throws if :error. Defaults to false. :static-fns - employ static dispatch to specific function arities in emitted JavaScript, as opposed to making use of the `call` construct. Defaults to false. :fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for unknown functions, but instead direct invokes via `f(a0,a1...)`. Defaults to `false`. :target - use `:nodejs` if targeting Node.js. Takes no other options at the moment. :ns - optional, the namespace in which to evaluate the source. :verbose - optional, emit details from compiler activity. Defaults to false. :context - optional, sets the context for the source. Possible values are `:expr`, `:statement` and `:return`. Defaults to `:expr`. cb (function) callback, will be invoked with a map. If successful the map will contain a key :value with the result of evalution. If unsuccessful the map will contain a key :error with an ex-info instance describing the cause of failure.

(eval-str state source cb)

(eval-str state source name cb)

(eval-str state source name opts cb)

Evalute ClojureScript source given as a string. The parameters: state (atom) the compiler state source (string) the ClojureScript source name (symbol or string) optional, the name of the source opts (map) compilation options. :eval - eval function to invoke, see *eval-fn* :load - library resolution function, see *load-fn* :source-map - set to true to generate inline source map information :cache-source - optional, a function to run side-effects with the compilation result prior to actual evalution. This function takes two arguments, the first is the eval map, the source will be under :source. The second argument is a callback of one argument. If an error occurs an :error key should be supplied. :def-emits-var - sets whether def (and derived) forms return either a Var (if set to true) or the def init value (if false). Default is false. :checked-arrays - if :warn or :error, checks inferred types and values passed to aget/aset. Logs for incorrect values if :warn, throws if :error. Defaults to false. :static-fns - employ static dispatch to specific function arities in emitted JavaScript, as opposed to making use of the `call` construct. Defaults to false. :fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for unknown functions, but instead direct invokes via `f(a0,a1...)`. Defaults to `false`. :target - use `:nodejs` if targeting Node.js. Takes no other options at the moment. :ns - optional, the namespace in which to evaluate the source. :verbose - optional, emit details from compiler activity. Defaults to false. :context - optional, sets the context for the source. Possible values are `:expr`, `:statement` and `:return`. Defaults to `:expr`. cb (function) callback, will be invoked with a map. If succesful the map will contain a :value key with the result of evaluation and :ns the current namespace. If unsuccessful will contain a :error key with an ex-info instance describing the cause of failure.

(js-eval {:keys [source], :as resource})

A default JavaScript evaluation function.

(ns->relpath ns-sym)

Given a namespace as a symbol return the relative path sans extension