This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-14
Channels
- # aleph (3)
- # announcements (16)
- # aws (6)
- # babashka (10)
- # beginners (28)
- # cider (1)
- # clj-kondo (14)
- # cljdoc (2)
- # cljs-dev (27)
- # cljsrn (7)
- # clojure (78)
- # clojure-europe (2)
- # clojurescript (14)
- # conjure (6)
- # core-async (2)
- # fulcro (5)
- # helix (7)
- # jobs (1)
- # lgbtq (1)
- # malli (12)
- # missionary (1)
- # nbb (10)
- # pathom (1)
- # portal (12)
- # protojure (1)
- # re-frame (41)
- # react (2)
- # reitit (1)
- # reveal (1)
- # shadow-cljs (72)
- # sql (11)
- # tools-deps (8)
- # vim (1)
- # xtdb (4)
Nbb Express example: https://github.com/borkdude/nbb/blob/main/examples/express/example.cljs
@borkdude what is great about nbb is that it is lightweight and fast to get it up and running. One can just npm i nbb
and start. Does there exist yet anything like Wisp but using bb/sci?
https://wisp-lang.github.io/wisp/
I mean so that you could do something like this:
<script src="bb.min.js"></script>
<script type="application/cljs">
(js/alert "Hello world!")
</script>
<!-- Load from a file: -->
<script type="application/cljs" src="my-script.cljs"></script>
The code that Wisp uses to find all <script>
tags and run their code is here: https://github.com/wisp-lang/wisp/blob/master/src/engine/browser.wisp#L35
All npm projects have their artifacts automatically available via CDNs so that would mean people could create a simple index.html
file, load bb.min.js
from CDN, and then put inline cljs
code in there.Awesome. I will have to experiment with using this in Slingcode! Thanks!
@chris358 OK, please let me know if you run into issues, don't hesitate to report them
@chris358 You can see a fullstack bb/scittle example here: https://github.com/kloimhardt/babashka-scittle-guestbook
Well it works.
Live reload on save works too. \o/