Fork me on GitHub
#portal
<
2023-07-12
>
gdubs03:07:18

I want to (require '[portal.client.web :as p]) from a browser-based scittle app. Do I first need to shadowjs-compile the portal.client.web namespace, and then include it in a <script> tag on my web page, and then require it? Anybody done this before?

👀 1
gdubs15:07:17

I did make some progress on this front doing exactly what I said above. I don't know shadow very well and ended up putting an ^:extern on portal.client.web/submit and then just accessing it as a global. Not completely working yet, but not blocked either.

djblue17:07:32

The portal.client.web namespace isn't doing much that's very interesting. If getting the code built / loaded becomes a headache, I would vendor the bits you need into your app since its mostly just hitting the /submit endpoint on the portal server with edn, json or transit.

👍 1