This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-31
Channels
- # architecture (1)
- # babashka (17)
- # calva (18)
- # cider (5)
- # clj-kondo (5)
- # cljdoc (44)
- # cljs-dev (2)
- # clojure (49)
- # clojure-europe (11)
- # clojure-norway (16)
- # clojure-uk (3)
- # clojurescript (89)
- # clr (8)
- # conjure (7)
- # cursive (26)
- # data-science (2)
- # datomic (15)
- # emacs (11)
- # events (1)
- # fulcro (8)
- # gratitude (3)
- # hyperfiddle (68)
- # introduce-yourself (1)
- # london-clojurians (1)
- # lsp (3)
- # nbb (8)
- # pathom (44)
- # pedestal (14)
- # polylith (2)
- # random (1)
- # shadow-cljs (8)
- # spacemacs (13)
- # squint (36)
- # tools-deps (9)
- # xtdb (17)
How should I go about using .clj
code in my .cljs
code?
I have
- my
- app.cljs
- scrape.clj
scrape.clj
contains code I want to run inside app.cljs
, how can I do that? Trying (:require [my.scrape])
gives me a "my/scrape.clj" was found on the classpath. Should this be a .cljs file?
in the terminal.
I was not able to find the proper documentation for this in the guide, it's most likely there but I haven't found it.it is unclear what you are trying to do. is this supposed to be a macro or what is the intent here?
so for that you'd need to setup a clj webserver and have the cljs code talk to that over http or websocket
I want to call a function from the my.scrape
name space that -as you concluded- grabs some data from a website, I want to then use reagent to display it in a web page. Thanks for letting me know I can't just call clj code. I found https://www.youtube.com/watch?v=V-dBmuRsW6w which aims to do something close to what I want, I'll watch it and report if I was able to do what I wanted, thank you!
👍 2