Fork me on GitHub
#announcements
<
2021-05-23
>
ivana02:05:18

Hello! I created yet another VS Code plugin for Clojure - https://github.com/Ivana-/bb-clj  Source code & installation VSIX are avaliable, feel free to try it!

👍 18
ivana16:05:38

I was just informed, that bb abbreviation is already strong associated with babashka project, so I added spesial comment to readme

Please, don't be confused if 'bb' reminds you the babashka project - it's just a coincidence, abbreviation for bare-bones

borkdude21:05:13

FYI: the association is there because the command line tool is called bb and also the config file: bb.edn.

borkdude10:05:25

Use ClojureScript (interpreted by SCI) directly in an HTML <script> tag. https://github.com/borkdude/sci-script-tag https://borkdude.github.io/sci-script-tag/ Experimental, feedback welcome.

👍 45
sci 24
3
🚀 27
9
cljs 9
🤯 15
pez11:05:38

Totally awesome.

pez14:05:13

Can I put the script in a cljs file and include with something like

<script src="hello_world.cljs" type="application/x-sci"></script>

borkdude14:05:35

hmm, not sure how that can be implemented yet, interesting

borkdude14:05:54

maybe it already works? not sure ;)

borkdude14:05:50

it seems there is a hack needed for this

pez15:05:48

I should have tried myself, but am in the middle of something and mainly letting myself be distracted by this new cool thing of yours.

borkdude15:05:49

@U0ETXRFEW I am pushing a new commit which supports this

borkdude15:05:22

note that SCI doesn't support all of CLJS so don't expect a random CLJS project to work, but you should be able to put snippets in there which are supported

borkdude15:05:53

ok works now

💯 3
pez15:05:05

Haha, you amaze me!

pez15:05:35

So, when working with an SPA project where we shared a lot of code between backend and frontend and where we server side rendered the SPA entry pages which when rendered in the browser “became” the SPA, there was still one thing I couldn’t solve. We had this quite involved business logic that powered a calculator on the web page. We had the same business logic used in the backend. While the SPA was being loaded and started, the calculator didn’t work. I’m looking at this script tag you’ve made and wondering if maybe it could be used for server side rendering fully functional pages. Don’t know if I am making sense, but anyway. (And, yes, I heard you about “not all CLJS”, even if I am reading in a “yet” there 😄.)

pez15:05:24

I might experiment with what I just rambled about and see if it could be true.

borkdude15:05:13

I would be surprised ;)