Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.99 KB

API.md

File metadata and controls

69 lines (46 loc) · 1.99 KB

dev.nu.morse

eval

(eval expr)

Sends the expr to Morse for evaluation. Returns if the send was successful.
source

inspect

(inspect expr)

Macro.

Sends the expr and its value to the Morse UI.
source

launch-in-proc

(launch-in-proc)

Launches an in-process mode Morse UI instance. The editor pane of that instance will use the hosting process to evaluate its contents.
source

launch-remote

(launch-remote & {:keys [host port], :or {host "localhost", port 5555}})

Launches an remote mode Morse UI instance. The editor pane of that instance will use the remote process to evaluate its contents. This function accepts keyword args with mappings :host -> host-string and :port -> port-number. By default these values will map to :host -> "localhost" and :port -> 5555.
source

load-file

(load-file filename)

Takes a filename and attempts to send each Clojure form found in it to Morse for evaluation.
source

morse

(morse {:keys [host port mode], :or {port 5555, mode :remote}})

Launches a Morse UI instance. The editor pane of that instance will use the relevant (either in-proc or remote) process to evaluate its contents. This function accepts an opts map with mappings :host -> host-string, :port -> port-number, and :mode -> :remote | :in-proc. By default these values will map to :port -> 5555, and :mode -> :remote.
source