scittle

Miguel Cuervo Escribano 2024-04-20T19:33:14.009659Z

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.

Miguel Cuervo Escribano 2024-04-21T11:38:04.862099Z

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:

borkdude 2024-04-21T11:38:53.993919Z

But you don’t see an error in the console?

Miguel Cuervo Escribano 2024-04-21T11:39:07.325399Z

No, nothing

borkdude 2024-04-21T11:39:12.154409Z

GitHub issue for this is welcome btw

Miguel Cuervo Escribano 2024-04-21T11:39:44.639189Z

Sure. I write it in few secs

borkdude 2024-04-20T20:12:58.753559Z

It could be that it currently doesn't work, but would be easy to fix. What is the error you're getting?

borkdude 2024-04-22T12:33:08.438759Z

New release is out now

Miguel Cuervo Escribano 2024-04-22T12:33:40.198419Z

❤️