Closed pld closed 7 years ago
Hi Peter, appreciate you pinging about this. Would be happy to see a PR if you have a specific approach in mind that you think would work well - thanks! :-)
Cheers
Will offer some guidance on this, and an alternative on the next Tempura release - cheers! :-)
It isn't obvious from the README that CLJS loading from resource files isn't supported, https://github.com/ptaoussanis/tempura/blob/master/src/taoensso/tempura/impl.cljc#L347
We got around this in tower, and now in tempura, by loading the resources into a dict at compile-time for the CLJS,
using something similar to the snippet above.
It'd be great to have external resources work in CLJS without the above. @ptaoussanis is there a principled reason this wasn't included? Would you be interested in a PR for this? I don't have the time right now, but I'd like to see this in a release and would try to make time for it when I could.