Fork me on GitHub
#pedestal
<
2023-12-27
>
hifumi12303:12:16

Is there something like the wrap-reload middleware for Pedestal? I’ve read the guide here http://pedestal.io/pedestal/0.7-pre/guides/live-repl.html but it seems to involve heavy refactoring of things into vars and functions

hlship17:12:27

There isn’t anything specific as yet; working on something is in the back of my mind. The challenge is that you want one behavior for REPL development, and a different behavior for production. One possibility would be to always start with a function that supplies the routing, and add a concept of a mode (dev vs. prod) that decides whether to unpack the routes once, or on every request.

👍 1
hlship17:12:25

But also support the routes being the literal data structure as well.