This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-30
Channels
- # announcements (1)
- # beginners (113)
- # cljs-dev (5)
- # cljsrn (20)
- # clojure (16)
- # clojure-losangeles (1)
- # clojure-nl (1)
- # clojure-spec (17)
- # clojure-uk (5)
- # clojurescript (125)
- # core-async (4)
- # cursive (4)
- # datomic (66)
- # defnpodcast (1)
- # fulcro (25)
- # kaocha (2)
- # klipse (1)
- # nrepl (19)
- # re-frame (5)
- # reagent (3)
- # reitit (6)
- # ring-swagger (16)
- # shadow-cljs (16)
- # sql (6)
- # test-check (1)
- # tools-deps (1)
- # vim (7)
Is it possible to use hiccup with Fulcro? So I can write [:div.ui.segments ...]
instead of (div :.ui.segments ...)
?
Should work with sablono if you really want https://github.com/r0man/sablono
@U8LP4DAJZ it’s certainly possible, as @U3LP7DWPR suggested, you could make your own wrapper macro around around defsc
that wraps the render body with the sablono html macro
i used to do that, but i don’t recommend it anymore
the syntax with sablono isn’t anymore expressive now that our dom macros have CSS class/id keyword support
and the fulcro dom macros are much faster
they convert the attributes map and CSS keyword to javascript objects at compile time, so there’s no runtime overhead
some will argue that they prefer to work with datastructures rather than code/macros, but i can count the number of times i’ve treated react dom nodes as data on one hand, and even then it wasn’t necessary
Hi all, I’m going through the fulcro template Readme and I’m getting a “File Not Found” exception for “clojure/tools/namespace” - is this a known issue?
Not that I know of
what version of clojure and java are you running?
from: deps.edn org.clojure/clojure {:mvn/version “1.10.0”}
java:
openjdk version “1.8.0-adoptopenjdk”
to give a little context, I get the error when trying to start the API server.
the section of the readme says: “Start a LOCAL clj nREPL in IntelliJ (using IntelliJ’s classpath with
the dev
alias selected in the Clojure Deps tab)”
starting the local repl in Intellij produces the error.
the alternative option from the readme (i.e. starting from the command line) works.
I too am working with the template right now. Run npx shadow-cljs server
(or use yarn
instead of npx
), then once it all finishes visit http://localhost:9630 and start the main
and workspaces
builds. Use the REPL in the browser to connect to the clj REPL and run (start)
. Then you can visit http://localhost:3000 without error
Oops, I somewhat misread your question. I am using Calva in VS Code and haven't yet figured out how to connect to or start the right nrepl
for the server. That's why I used the browser REPL in my previous message.
Ah, I figured it out. I connected to the main
REPL using nrepl, then ran (ns user)
before running (start)
(when I opened that REPL for the first time it was in the namespace shadow.user
)