-
I would like to use and visualize GPX data in a notebook, so I am experimenting with a custom viewer that uses Leaflet. Adapting an example in The Book of Clerk I was able to use I could not find a way to do that from a notebook. I am wondering if I am pursuing a valid idea in general (trying to include extra CSS), and what would be the appropriate mechanism to allow users to do that. Looking into Clerk's code I found a function Thank you for any guidance or hints you can provide |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @larsen, what we're doing in some projects of ours, is to alter the var root of the functions you mention, like: (alter-var-root #'nextjournal.clerk.view/include-css+js
(fn [include-fn]
(fn [state]
(concat (include-fn state)
(list (hiccup.page/include-css "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css")))))) this works well enough until we find a dedicated mechanism to allow for 3rd party css additions. |
Beta Was this translation helpful? Give feedback.
-
See also discussion in #67 for more context. |
Beta Was this translation helpful? Give feedback.
-
#323 is a related issue with more info, feel free to upvote it. |
Beta Was this translation helpful? Give feedback.
Hi @larsen, what we're doing in some projects of ours, is to alter the var root of the functions you mention, like:
this works well enough until we find a dedicated mechanism to allow for 3rd party css additions.