clerk

mkvlr 2024-08-30T10:14:36.865749Z

first pass at documenting the upcoming Render nREPL feature:

👀 6
Drew Verlee 2024-08-30T03:05:08.149869Z

Is there a way to ignore, that is don't show in the browser view, comments marked a certain way? e.g i want to ignore this:

;; => {"somekey" "somevalue"}
So i would set the ignore prefix to something like this:
=>

mkvlr 2024-08-30T10:13:19.395959Z

(def custom-cell-viewer
  (update viewer/cell-viewer
          :transform-fn comp
          (clerk/update-val (fn [cell]
                              (update-in cell [:settings ::clerk/visibility]
                                         #(cond
                                            (:ns? cell) {:code :hide :result :show}
                                            (defn? cell) {:code :hide :result :hide}
                                            'else %))))))

Drew Verlee 2024-08-30T03:07:13.809829Z

I don't see anything in the visibility section.

phronmophobic 2024-08-30T03:36:09.635539Z

Not sure if there's a more idiomatic option since this thread, but I think using a comment block with visibility metadata should still work.

Drew Verlee 2024-08-30T05:20:56.638089Z

Ty @smith.adriane I'll look into that option:thinking_face:🙏