This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-26
Channels
- # arachne (80)
- # beginners (76)
- # boot (16)
- # cider (66)
- # cljs-dev (62)
- # cljsjs (1)
- # clojure (106)
- # clojure-dev (5)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (61)
- # clojure-uk (130)
- # clojurescript (21)
- # core-async (9)
- # cursive (3)
- # datomic (37)
- # events (41)
- # figwheel (31)
- # fulcro (27)
- # hoplon (1)
- # jobs (2)
- # lumo (11)
- # off-topic (155)
- # re-frame (71)
- # reagent (27)
- # ring-swagger (3)
- # shadow-cljs (132)
- # spacemacs (5)
- # specter (1)
- # sql (37)
- # test-check (10)
- # uncomplicate (5)
- # unrepl (2)
- # yada (3)
Hi, does anyone know if it is possible to get the clojurescript compiler to use leading forward slashes in it's generated script tags? So document.write('<script src="js/main.out/goog/base.js"></script>');
=> document.write('<script src="/js/main.out/goog/base.js"></script>');
?
I'm trying to work through some edge cases with client-side routing, and this would appear to be a potentially simple solution to those problems.
@zalky Btw, did you not get a warning in the console? The script that's generated by CLJS compiler should print a warning suggesting to set :asset-path
.
@zalky I mean, if goog/base fails to load, there should be a console.warn
about 2-3 lines below that 404 that you get with a suggestion to change :asset-path
. We have code for that.
@rauh: Ah, yeah I see it now, the warning is there, it was just swamped by a bunch of 404s, so I missed it. Thanks again for the pointer.
@tomaas without jquery (array-seq (js/document.querySelectorAll "thead th:nth-child(1)"))
array-seq
makes it a bit easier to work with via the usual clojure fns like map
or doseq
Hi, we've released a new Clojure/Clojurescript web framework today called qlkit: https://medium.com/@conrad_9565/lets-build-a-ui-with-qlkit-and-graph-queries-79b7b118ddac It's based on graph queries and inspired by Om Next