@sritchie09 In your work getting cljs working with clerk (thanks for that template link btw), did you ever manage to figure out how to expose a fill to cljs at runtime? I want to load a sprite in my cljs quil sketch that's embedded in a clerk notebook. I can't seem to figure out how to get the file available to cljs without hosting it externally and accessing it as a url.
I think you figured it out… you’ve got to host it or get it into the viewer somehow as a value , which the base64 solution accomplishes
Yea that works for what I need for now.. but I was hoping you had a slick trick to include it in resources/public/ (or somewhere) and have it picked up by whatever does the http serving for clerk
ah! yeah something like that SHOULD work too
@mkvlr not sure if there is a way to add extra static resources for clerk/build to grab?
I managed to workaround that limitation by now by base64 encoding the image and parsing it as a data uri 😕
🎉 just released https://clojars.org/io.github.nextjournal/clerk/versions/0.16.1016, see https://github.com/nextjournal/clerk/blob/db38910b884ed8c3911632a2a6d208b3c24474e6/CHANGELOG.md#0161016-2024-06-05.
Super exiting changes in this one! Looking forward to the next time I get a Clerk-shaped problem.