This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-18
Channels
- # admin-announcements (13)
- # announcements (1)
- # aws (17)
- # beginners (1)
- # boot (113)
- # cider (71)
- # cljs-dev (7)
- # clojure (93)
- # clojure-android (2)
- # clojure-berlin (1)
- # clojure-dev (22)
- # clojure-italy (3)
- # clojure-japan (1)
- # clojure-poland (41)
- # clojure-russia (96)
- # clojurescript (140)
- # cursive (11)
- # datomic (27)
- # devcards (1)
- # devops (1)
- # events (4)
- # funcool (3)
- # hoplon (133)
- # immutant (7)
- # ldnclj (22)
- # leiningen (5)
- # off-topic (6)
- # om (22)
- # onyx (12)
- # re-frame (8)
- # reagent (12)
@gstamp: I don't know if you're looking to switch your testing setup, but I can heartily recommend lein doo
.
@zane: Thanks. I will definitely look into it. I was mainly on clojurescript.test because reagent template used it by default but the Clojurescript testing landscape seems to have moved on.
Hello, I want to render a svg file as reagent data structure. I load i into an core.async channel and parse it with hickory to get it as hiccup style format. After that I mount the result into my component. But i only renders some numbers, but no content.
When I print the result to the console and copy it into the component, it works fine. What have I overseen?
@danielgrosse: when asking a question please attempt to state the problem as clearly and minimally as possible. I find what you say above a bit confusing: an SVG file will be full of svg elements like <line ...>
and <g ...>
. Are you saying that the contents of an SVG file is passed via core.async (as a string?) and then parsed by hickory and then mounted (how?) into a component?? Happy to help, but we'll need to see a minimal gist. I'd got a feeling that core.async is not really any part of the problem. You just want to know how to turn a string containing SVG into something you can render in a component???
I'm using reagent-template
's way of routing. I'm trying to redirect a hash but find that I need to do an extra session/put!
like so:
(defroute "/" [] (do (session/put! :current-page #'main-production-page)
(set-hash! "/production")))
(defroute "/production" [] (session/put! :current-page #'main-production-page))