This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (48)
- # beginners (72)
- # calva (65)
- # cider (10)
- # clerk (11)
- # clj-kondo (14)
- # clojure (85)
- # clojure-austin (11)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (6)
- # funcool (6)
- # hyperfiddle (79)
- # introduce-yourself (1)
- # lsp (131)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (49)
- # sql (3)
- # tools-deps (36)
I just pushed a change to org-mode ob-clojure
that fixed
the inconsistent :results
behaviour (https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6efb073463481ee572eb3bb1155cc3b0d6987df6)
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"}
#+end_src
#+RESULTS:
: #js {:foo "bar"}
#+BEGIN_SRC clojure
(= *file* (System/getProperty "babashka.file"))
#+END_SRC
#+RESULTS:
: true
#+BEGIN_SRC clojure :backend clojure-cli
(= *file* (System/getProperty "babashka.file"))
#+END_SRC
#+RESULTS:
: false
Please test if this breaks something for you.
You can give feedback here on Slack or per mail :)This is awesome! will update over the weekend and try it out.