Modified from this gist which in turns modified from https://github.com/emacsmirror/ob-clojurescript/blob/master/ob-clojurescript.el
Just for personal use, so currently not published to Melpha. Install with use-package with straight.el:
(use-package ob-bb
:straight (:type git :host github :repo "kimim/ob-bb"))
(use-package org
:straight (:type built-in)
:config
(org-babel-do-load-languages
'org-babel-load-languages
'(
;; other languages
;; ...
(bb . t))))
Install manually:
git clone https://github.com/kimim/ob-bb
(use-package ob-bb
:load-path "/path/to/ob-bb")
(use-package org
:config
(org-babel-do-load-languages
'org-babel-load-languages
'(
;; other languages
;; ...
(bb . t))))
#+begin_src bb
(def n 40)
(+ n 2)
#+end_src