This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-07
Channels
- # announcements (1)
- # beginners (123)
- # calva (17)
- # clj-kondo (16)
- # cljfx (1)
- # cljs-dev (4)
- # clojure-austin (1)
- # clojure-conj (1)
- # clojure-europe (28)
- # clojure-nl (3)
- # clojure-norway (25)
- # clojure-sweden (8)
- # clojure-uk (6)
- # conjure (4)
- # datahike (30)
- # datalevin (2)
- # datomic (2)
- # docker (4)
- # events (1)
- # fulcro (6)
- # graalvm (9)
- # gratitude (1)
- # honeysql (7)
- # hyperfiddle (29)
- # introduce-yourself (2)
- # jobs (2)
- # off-topic (18)
- # pedestal (5)
- # reitit (3)
- # releases (3)
- # remote-jobs (3)
- # scittle (18)
- # shadow-cljs (31)
- # tools-build (44)
- # tools-deps (10)
Hello @borkdude &@sritchie09. @nek and I are finally coming back to the hope of embedding https://github.com/mentat-collective/emmy-viewers in plain HTML. The goal is to make it easy to include them in blog posts, books, Reveal.js slideshows, etc., alongside https://scicloj.github.io/kindly-noted/kinds that we typically use. Ideally, the user should just add a JS dependency to their HTML page, and be able to include viewers as script tags to create the Reagent components. One way to do it is creating a fork of Scittle with the relevant dependencies, https://github.com/scicloj/scittle/commit/eb01deb3c31fe87b729ceee4eef123d17d52491e. (I remember there are other ways to extend Scittle, but afaik they will complicate things on the user side.) Would you still consider this a decent solution? Or would you recommend looking elsewhere for alternatives?
> One way to do it is creating a fork of Scittle There is a better option, create a scittle plugin and then re-compile scittle with that plugin enabled: https://github.com/babashka/scittle/tree/main/plugins/demo
Thanks! 👀
@U05094X3J has created the scittle hoplon project, and is using this setup
at least the build is available here: https://www.jsdelivr.com/package/npm/scittle-hoplon
The hoplon plugin is on scittle itself: https://github.com/babashka/scittle/tree/main/plugins/hoplon We use it on the playground: https://hoplon.io/playground.html
I only build it once so it was on my machine. I think I changed the scittle build itself to add the hoplon plugin. One thing to notice is that you cannot combine js generated from different builds, you need to use all the outputs from the same build.
anyway, let me know if you have any questions about this @U066L8B18
That is very helpful, many thanks @borkdude & @U05094X3J.
@U066L8B18 I’ve been making lots of maria sketches to help folks with emmy-viewers, it’s been great: https://2.maria.cloud/gist/9376a3d9e0408de7d5cdb8d5dddbd37b
Yes, I saw! Fantastic