clerk

Sam Ritchie 2023-11-16T17:50:27.262259Z

hey all - is there a preferred way to call format inside of a viewer, like this:

(format "%.2f" 10.123123)
"10.12"

Sam Ritchie 2023-11-16T17:50:38.222569Z

without mucking with the SCI config and installing goog.string/format?

borkdude 2023-11-16T18:08:23.444109Z

Should be explicitly added if you want it

Sam Ritchie 2023-11-16T18:10:44.850149Z

I was trying to avoid doing a custom clerk build, but in this case I’m already forced into it for other reasons so I can add it to clojure.core, I guess

Sam Ritchie 2023-11-16T18:10:46.997549Z

thank you!

borkdude 2023-11-16T18:23:08.165619Z

you can check the nbb configuration, it has goog.string/format

Sam Ritchie 2023-11-16T22:30:54.881719Z

can Clerk recompute based on an atom change in its editor mode?

Sam Ritchie 2023-11-16T22:32:08.279899Z

it looks like derefs aren’t currently watched in this SCI / editor mode