scittle

chaos 2025-05-26T20:26:08.153789Z

Added a reagent https://codemirror.net/scittlet to the https://github.com/ikappaki/scittletsCatalog with version v0.2.0. This scittlet includes utilities for dynamically importing its dependencies from https://esm.sh/. In the next iteration, these utilities will be moved to a separate scittlet for reuse across multiple scittlets or standalone use. CodeMirror scittlet Demo 👾: https://ikappaki.github.io/scittlets/examples/codemirror/codemirror_demo.html CodeMirror Catalog API Entry: https://ikappaki.github.io/scittlets/test/scittlets/reagent/codemirror.html Web Catalog: https://ikappaki.github.io/scittlets/ Tiny Scittlets Slides (slide 2): https://ikappaki.github.io/scittlets-slides/

🎉 3
borkdude 2025-05-27T08:41:44.266759Z

@arohner regarding our recent ESM discussion, @chaos solved it in combination with reagent in this way: https://github.com/ikappaki/scittlets/blob/6a81d521fc70d4a4edfd7c6b25795ed9e40e7c7c/src/scittlets/reagent/codemirror.cljs#L7-L35

👍 1
👀 1
borkdude 2025-05-27T08:42:19.091999Z

The difficulty is that loading ESM is async so you need to write async code to deal with that

borkdude 2025-05-27T08:42:33.463139Z

scittle contains promesa though, to make this easier