This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-20
Channels
- # announcements (4)
- # babashka (10)
- # beginners (8)
- # calva (13)
- # cherry (20)
- # cider (9)
- # clojure (11)
- # clojure-austin (2)
- # clojure-europe (3)
- # clojure-norway (3)
- # clojurescript (1)
- # datomic (5)
- # dev-tooling (9)
- # fulcro (5)
- # hyperfiddle (5)
- # instaparse (1)
- # lingy (1)
- # malli (21)
- # matrix (1)
- # missionary (9)
- # off-topic (12)
- # releases (2)
- # ring-swagger (8)
- # scittle (9)
- # shadow-cljs (20)
Hi, I have a novice question about scittle (first time I tried to use it). I have a backend in Clojure and a frontend in JavaScript. I want to share some logic from the backend with the frontend. I want to load a scittle script with functions that I can invoke from the JavaScript frontend. However, since the same logic will be available for the Clojure backend, I would like to use cljc with conditional readers for ClojureScript and Clojure. Is this approach possible? Can I load a cljc file as a scittle script? The attempts I tried did not work, but I wonder if they are not working because they are not supported or because I am doing something wrong.
It could be that it currently doesn't work, but would be easy to fix. What is the error you're getting?
It looks as if it is filtering out the conditional readers. In this modified example from the scittle repo, the alert is not invoked when clicking:
No, nothing
Sure. I write it in few secs