clerk

Casey 2024-06-05T06:42:15.812109Z

@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.

Sam Ritchie 2024-06-05T15:45:39.899749Z

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

Casey 2024-06-05T15:56:45.458159Z

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

Sam Ritchie 2024-06-05T17:40:40.168909Z

ah! yeah something like that SHOULD work too

Sam Ritchie 2024-06-05T17:41:04.816389Z

@mkvlr not sure if there is a way to add extra static resources for clerk/build to grab?

Casey 2024-06-05T09:59:42.949049Z

I managed to workaround that limitation by now by base64 encoding the image and parsing it as a data uri 😕

teodorlu 2024-06-05T16:59:34.069159Z

Super exiting changes in this one! Looking forward to the next time I get a Clerk-shaped problem.

❤️ 3