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!
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
FYI: the association is there because the command line tool is called bb
and also the config file: bb.edn
.
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.
Totally awesome.
Now also with Reagent plugin: https://borkdude.github.io/sci-script-tag/#reagent
Can I put the script in a cljs file and include with something like
<script src="hello_world.cljs" type="application/x-sci"></script>
hmm, not sure how that can be implemented yet, interesting
maybe it already works? not sure ;)
it seems there is a hack needed for this
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.
@pez I am pushing a new commit which supports this
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
ok works now
Haha, you amaze me!
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 😄.)
I might experiment with what I just rambled about and see if it could be true.
I would be surprised ;)