This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-25
Channels
- # admin-announcements (2)
- # beginners (36)
- # boot (37)
- # cider (65)
- # cljsrn (92)
- # clojars (3)
- # clojure (225)
- # clojure-austin (5)
- # clojure-belgium (2)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-greece (2)
- # clojure-mexico (3)
- # clojure-news (2)
- # clojure-quebec (1)
- # clojure-russia (14)
- # clojure-spec (24)
- # clojure-uk (53)
- # clojurescript (34)
- # cursive (14)
- # datascript (9)
- # datomic (4)
- # defnpodcast (8)
- # devcards (30)
- # dirac (7)
- # editors (7)
- # emacs (1)
- # figwheel (1)
- # hoplon (85)
- # immutant (2)
- # incanter (1)
- # luminus (5)
- # off-topic (41)
- # om (18)
- # onyx (11)
- # perun (2)
- # re-frame (11)
- # reagent (9)
- # ring (3)
- # spacemacs (2)
- # spirituality-ethics (1)
- # test-check (19)
- # testing (12)
- # untangled (14)
- # yada (9)
Is there a helper lib to render cache-busting JS file links in Hiccup, Ring or Boot? E.g. <script src="/app.js?ver={{git_sha or unix timestamp}}” ...>
Ideally via something like (include-js “app.js” :bust-cache true)
, which would happen on server page generation.
the interface looks sth like this: https://drive.google.com/open?id=0BzfCuz894WQcV2I4RHNuMjB2ZTQ
what libs would you recommend for the interface -> the colorful elipsis are animated... and when you click on any of them they get extended and some section of the page appears
hey all - I'm looking for a quick solution to 'pretty-print' clojure data structures to a foldable/explorable html for dumping onto the page, so I can see how the data changes underneath - any existing libraries that do that?
@cmdrdats: you could do that in devtools console with cljs-devtools: https://github.com/binaryage/cljs-devtools
if you really wanted to write custom renderer to be placed directly in your page, it should be possible to reuse cljs-devtools internals
upcoming v0.8 will internally produce hiccup-like data structure, which can be then rendered by hand see this file: https://github.com/binaryage/cljs-devtools/blob/wip/src/lib/devtools/formatters/markup.cljs
I highly recommend this for Reagent https://github.com/Odinodin/data-frisk-reagent
thanks @darwin - I'll probably look into clj-devtools down the line - need something lightweight for now
Some one know a lib to manipulate ODF in browser ?
new ClojureScript book is ready https://leanpub.com/clojurescript-unraveled
Is it possible/advisable to enable a reader conditional feature for a specific CLJS build?
I'd like to enable certain features in my code in dev builds only, including requiring certain namespaces
@petrus: there is a GCL lib cal that does this, I don't know it off hand but I use it in figwheel client file reloading
Was wondering if anyone here has used re-frame/devcards and developed any successful strategies / best practices for developing components with devcards that use re-frame state?
@mattsfrey: Best I've seen so far can be found at https://github.com/nberger/devcards/blob/iframe/example_src/devdemos/re_frame.cljs with a brief discussion about it near the bmottom of https://clojurians-log.clojureverse.org/re-frame/2016-07-15.html
I'm hoping to put some time in this week to get something written up in the re-frame and devcards wikis if I can get something working with it
@peeja: not sure what you mean and not clear how you would accomplish that (if you mean what I think you mean)
@dnolen: I mean: Is it possible to instruct the compiler to read my code with the feature :my-feature
on?
For instance, I'd like to be able to include devcards in the same namespaces as the components they demonstrate, but strip them out entirely in production. Devcards has a macro that hides code when devcards is off, but I still have to include the devcards library in production, because I still have to require
it.
@peeja reader conditional features are not open - they can only be used for the platform tags
:clj
, :cljs
etc
future possible expansion
earlier (non-released) versions of reader conditionals did allow for custom features but we pruned things way back