This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-03
Channels
- # aleph (8)
- # announcements (3)
- # architecture (47)
- # babashka (22)
- # beginners (22)
- # chlorine-clover (2)
- # cider (15)
- # clj-yaml (6)
- # cljs-dev (3)
- # clojure (76)
- # clojure-austin (2)
- # clojure-europe (16)
- # clojure-france (10)
- # clojure-gamedev (11)
- # clojure-norway (28)
- # clojure-sweden (4)
- # clojurescript (32)
- # conjure (1)
- # datahike (2)
- # datomic (6)
- # events (9)
- # graalvm (8)
- # gratitude (5)
- # honeysql (8)
- # humbleui (2)
- # hyperfiddle (37)
- # jobs (1)
- # polylith (4)
- # re-frame (14)
- # releases (2)
- # rum (9)
- # sci (9)
- # scittle (8)
- # shadow-cljs (9)
- # spacemacs (4)
- # sql (10)
- # xtdb (24)
Hi, I didn't have time to try something out myself but I have an idea.
With this library it's possible to run scripts from a script tag just like scittle but also from a tag with the _
(underscore) attribute. The code is applied to the tag it is found on. Would it be possible to have something like this in scittle as well?
Sure you can do this in user space with scittle already. Just write some JS interop and use scittle.core/eval_string
I needed to save my ref to the element on the window so I can get it back later. Can I improve that somehow?
why not make the scittle attribute a function so you pass the ref:
(fn [{:keys [ref]}] ....)