(clj-files-in path)
Return a list of filenames of .clj files located within the specified path, recursively.
Return a list of filenames of .clj files located within the specified path, recursively.
(config-value sym-or-val)
Given a symbol, extract value from resolved var, else return the given value
Given a symbol, extract value from resolved var, else return the given value
(edn-files-in path)
Return a list of filenames of .edn files located within the specified path, recursively.
Return a list of filenames of .edn files located within the specified path, recursively.
(establish-path path)
Create any missing directories in path
Create any missing directories in path
(filename->ns filename)
Given a filesystem path or classpath resource (not including scheme), returns the namespace can be required.
Given a filesystem path or classpath resource (not including scheme), returns the namespace can be required.
(files-in pred path)
(files-in pred base [name & more] result)
Returns a list of files that are in the path and match the predicate. Recursive.
Returns a list of files that are in the path and match the predicate. Recursive.
(files-with-suffix-in suffix path)
Return a list of filenames matching a suffix located within the specified path, recursively.
Return a list of filenames matching a suffix located within the specified path, recursively.
(namespace->path namespace)
Given a namespace string, returns a path to the resource directory.
Given a namespace string, returns a path to the resource directory.
(path->namespace filename)
Given a filesystem path or classpath resource (not including scheme), returns the namespace can be required.
Given a filesystem path or classpath resource (not including scheme), returns the namespace can be required.
(read-edn-resource path)
Find file in classpath, read as EDN, and return form.
Find file in classpath, read as EDN, and return form.
(resolve-var var-sym)
Given the symbol of a fully qualified var name, load the namespace and return the var. Throws an exception if the var doesnt exist. Deref the var to get it's value. Use to decouple code; dynamically load code.
Given the symbol of a fully qualified var name, load the namespace and return the var. Throws an exception if the var doesnt exist. Deref the var to get it's value. Use to decouple code; dynamically load code.
(resources-in package)
Returns a seq of all the files and directories in the provided package names. They resources must be in the classpath, either in the filesystem or a jar file. Not recursive.
Returns a seq of all the files and directories in the provided package names. They resources must be in the classpath, either in the filesystem or a jar file. Not recursive.
(stream->md5 s)
(var-value var-sym)
Using resolve-var, return the value of the var, or nil if it fails to resolve
Using resolve-var, return the value of the var, or nil if it fails to resolve
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close