This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-07-01
Channels
- # announcements (4)
- # babashka (19)
- # beginners (19)
- # calva (24)
- # cider (1)
- # clerk (7)
- # clj-otel (60)
- # clojars (22)
- # clojure (15)
- # clojure-europe (20)
- # clojure-nl (2)
- # clojure-norway (61)
- # clojure-uk (9)
- # clojurescript (18)
- # community-development (3)
- # cursive (3)
- # datahike (4)
- # datalevin (5)
- # emacs (8)
- # off-topic (23)
- # polylith (46)
- # releases (6)
- # spacemacs (8)
- # yamlscript (1)
Having a great time poking around in clojure.core.async
with Clerk. Nice to be able to collect multiple examples at once, and see whether they behave as I expect them to do. Clerk’s caching is helpful; it lets me collect lots of examples that each take a bit of time to run — yet make changes to one, see that one changed, and the previous results from the other runs.
I may have anountered a visual problem here, {:duration-millis
appears to be cut of from the last result. I made an issue with a reproduction: https://github.com/nextjournal/clerk/issues/652
Is there a way to write a Clerk viewer that “signals” to the Clerk table viewer that a column values should be right-adjusted?
I want to display durations right-adjusted in tables, and I’ve got a tiny Clerk viewer that shows a java.time.Duration
. But it renders left-adjusted. As far as I can tell, this is controlled by a number-col?
option in the table viewer (https://github.com/teodorlu/clerk/blob/9eaf4d8478064d745659b674b1a1037a9aa16f54/src/nextjournal/clerk/viewer.cljc#L1081-L1084). (Let me know if I’m approaching this in an awkward way.)
(def duration-ms-viewer-wip
{:transform-fn (nextjournal.clerk.viewer/update-val
(fn [duration]
(format "%,3d ms" (.toMillis duration))))})