Fork me on GitHub
#portal
<
2023-01-14
>
Daniel Slutsky22:01:21

Hi. https://github.com/djblue/portal/blob/master/doc/guides/standalone.md's feature of https://github.com/djblue/portal/blob/master/doc/guides/standalone.md#preloading-data looks wonderful. A couple of questions (not so pressing, just wondering for now): ā€¢ is there a way to somehow load https://cljdoc.org/d/djblue/portal/0.35.1/doc/guides/custom-viewer as part of the data file? ā€¢ is there a way to include images (e.g., PNG) in the data file?

djblue16:01:44

Loading custom viewers into the standalone version isn't currently supported but I'm down to add it if we come up with something reasonable. Images can be loaded via the hiccup viewer using the :img element.

djblue16:01:26

Also, I think transit supports binary data which can be viewed as an image šŸ‘Œ

šŸ™ 2