This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-19
Channels
- # announcements (19)
- # asami (9)
- # babashka (26)
- # beginners (87)
- # biff (23)
- # calva (6)
- # clerk (7)
- # clj-kondo (3)
- # cljsrn (3)
- # clojure (115)
- # clojure-belgium (1)
- # clojure-berlin (1)
- # clojure-europe (31)
- # clojure-gamedev (5)
- # clojure-nl (2)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (43)
- # clr (23)
- # datalevin (1)
- # datomic (14)
- # dev-tooling (23)
- # fulcro (38)
- # graphql (1)
- # gratitude (1)
- # jobs (1)
- # lsp (30)
- # off-topic (7)
- # pathom (25)
- # portal (21)
- # quil (6)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (34)
- # sql (5)
- # tools-deps (6)
- # xtdb (13)
Hitting an issue with clerk, I think related to slurping a file, https://github.com/olymk2/clerk_inkscape_svg/blob/master/src/bb_inkscape_example.clj#L20 which renders in the garden like so https://github.clerk.garden/olymk2/clerk_inkscape_svg/commit/65f5aa8483b7aa29ffb5fb31eb34f65ab2fa838a/ is there an issue with doing this ?
Ahhh, try this syntax, I think that might be outdated:
^{:nextjournal.clerk/visibility :hide}(slurp "")
This "gardened" to the elided result with the code hidden:seems its specifically the slurp, it works locally when jacked in its only when building for the garden
okay on a bit more investigation, the cause is this.
(slurp "src/bb_inkscape_example.sh")
vs
(clerk/html [:pre (slurp "src/bb_inkscape_example.sh")])
as soon as the slurp is wrapped in clerk/html it breaks the rendering as in the example above, guess its a bug