etaoin

Ellis 2024-01-12T15:36:33.719029Z

I've tried to skim through the user guide to answer my question but I couldn't find it. I'll try and read through it in more detail but if someone knows in the meantime; is it possible to use a string of HTML (from Hiccup, naturally) as the source for the screenshot instead of a path? My usecase is I'm generating custom opengraph images based on a given page and I'd prefer to have a single route rather than 1 route to return the HTML and another for the image. Thanks for such a great project! 🙂 EDIT: Yes, using a temp file and a file:// url like https://github.com/cljdoc/cljdoc/blob/3895640b7236752da8fa5935992118cda88428b1/script/doc_update_readme.clj#L124-L141

lread 2024-01-12T15:53:53.023759Z

hi @elken! Not sure if this answers your question, but I’ve generated contributor badges from hiccup and captured via etaoin for various projects. https://github.com/cljdoc/cljdoc/blob/3895640b7236752da8fa5935992118cda88428b1/script/doc_update_readme.clj#L64.

Ellis 2024-01-12T15:54:38.453699Z

Ah file URL, great thinking 😄

👍 1