Liking cljdoc? Tell your friends :D

clojure.tools.nrepl.middleware.load-file


load-file-codeclj

(load-file-code file file-path file-name)

Given the contents of a file, its source-path-relative path, and its filename, returns a string of code containing a single expression that, when evaluated, will load those contents with appropriate filename references and line numbers in metadata, etc.

Note that because a single expression is produced, very large file loads will fail due to the JVM method size limitation. In such cases, see load-large-file-code'.

Given the contents of a file, its _source-path-relative_ path,
and its filename, returns a string of code containing a single
expression that, when evaluated, will load those contents with
appropriate filename references and line numbers in metadata, etc.

Note that because a single expression is produced, very large
file loads will fail due to the JVM method size limitation.
In such cases, see `load-large-file-code'`.
sourceraw docstring

wrap-load-fileclj

(wrap-load-file h)

Middleware that evaluates a file's contents, as per load-file, but with all data supplied in the sent message (i.e. safe for use with remote REPL environments).

This middleware depends on the availability of an :op "eval" middleware below it (such as interruptible-eval).

Middleware that evaluates a file's contents, as per load-file,
but with all data supplied in the sent message (i.e. safe for use
with remote REPL environments).

This middleware depends on the availability of an :op "eval"
middleware below it (such as interruptible-eval).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close