Fork me on GitHub

I just pushed a change to org-mode ob-clojure that fixed the inconsistent :results behaviour ( If you specify :results value (or nothing, as this is the default) you will get the last sexp as a result. With :results output, the return value is all of stdout. I also added support to use Clojure CLI as a backend and nbb is the default for ClojureScript source blocks if npx or nbb is installed. With bb, clojure-cli, npx nbb it makes it really easy to start using ob-clojure without setting up and starting cider. E.g.

#+begin_src clojurescript
#js {:foo "bar"}

: #js {:foo "bar"}

#+BEGIN_SRC clojure
(= *file* (System/getProperty "babashka.file"))

: true

#+BEGIN_SRC clojure :backend clojure-cli
(= *file* (System/getProperty "babashka.file"))

: false
Please test if this breaks something for you. You can give feedback here on Slack or per mail :)

🎉 16
👍 2
César Olea15:03:42

This is awesome! will update over the weekend and try it out.