This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-18
Channels
- # announcements (1)
- # babashka (15)
- # beginners (152)
- # calva (28)
- # circleci (1)
- # clj-kondo (24)
- # cljsrn (8)
- # clojure (137)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-dev (20)
- # clojure-europe (69)
- # clojure-finland (5)
- # clojure-france (3)
- # clojure-italy (11)
- # clojure-my (1)
- # clojure-nl (4)
- # clojure-uk (15)
- # clojuredesign-podcast (1)
- # clojurescript (13)
- # conjure (15)
- # cursive (13)
- # datomic (41)
- # deps-new (50)
- # events (1)
- # fulcro (9)
- # graalvm (27)
- # joker (2)
- # kaocha (11)
- # off-topic (22)
- # pathom (48)
- # rdf (6)
- # reagent (25)
- # reitit (47)
- # reveal (10)
- # ring-swagger (1)
- # rum (4)
- # sci (27)
- # shadow-cljs (73)
- # tools-deps (49)
- # vrac (2)
- # xtdb (4)
I'm trying to use compojure, and clojurescript for building websites (also planning to use hiccup), but I don't know how I can use them alltogether. I know that for hiccup, I can do (include-js "file") stuff, but not sure how it will work out for clojurescript. Anyone know any good resources for linking these softwares? thanks
hi, working on a nodejs cljs project, that uses npm serialport. If I build this as a standalone .js with shadow-cljs, then the serial port reacts to incoming data as expected. In the repl, however, I can see data come in (via some led's) but I never get notifications of this. I'm guessing it's some odd event-loop stuff, but this is above my node pay grade. Is there something that can be done in code run in the repl to let this stuff flow?
@hoppy are you expecting log entries in the repl? I remember shadow-cljs had some trouble showing nodejs logs in the repl a while ago
@alpox, guess I was expecting to see a println inside an '.on("data"')' Hadn't considered that that might not actually work - hmm
@alpox - you nailed it. the code is running, just not printing (in this particular case). atoms are my friend - Thank you!
Anyone know how to do this: document.getElementById("main-div").clientWidth in cljs?
(.-clientWidth (.getElementById js/document "main-div"))
should do the trick