Fork me on GitHub
#portal
<
2022-04-14
>
djblue01:04:53

https://clojurians.slack.com/archives/C8NUSGWG6/p1649892856501709 might be interesting to some here, especially newer folks. We explore Portal from the perspective of a brand new user.

🙏 2
❤️ 1
Jose Varela05:04:30

Testing out portal by logging ring req/res via middleware. Is there an easy way to get java objects to render in the portal UI?

Jose Varela05:04:23

bean doesnt do much in this case

Jose Varela05:04:09

Tried https://github.com/clojure/java.data but this gives the same result as bean

hiredman06:04:13

That is an inputstream

👍 1
hiredman06:04:31

Reading data from it consumes it

Jose Varela06:04:50

Thanks I can figure out how to render it. Was wondering if Portal had a way of doing it by default or some standard way of overriding some type-specific renderer.

djblue06:04:38

You might be able to move the Portal middleware after the body processing middleware. Usually it will put the parsed body under something like :body-params

👍 1