reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
orestis 2020-06-19T13:32:45.163400Z

Is there a way to compare Match records? In the frontend context, because the controllers are functions, two otherwise identical match objects are never equivalent.

2020-06-19T16:45:31.166600Z

I'm new to a project that uses reitit. Does anyone know where I can find documentation on reitit.frontend.easy/start! and related functions? I have a suspicion that there are a number of similar functions that act as an interface between reitit's standardized routing format to different contexts (i.e. a browser, ring, pedestal, etc.), but I can't seem to find any documentation that says that's how things work. Have I missed an obvious intro paragraph somewhere?

orestis 2020-06-19T17:52:37.167Z

Not sure what you’re after @bmaddy — sharing routes between frontend/backend?

2020-06-19T18:36:44.167200Z

Have you seen https://metosin.github.io/reitit/frontend/controllers.html?

2020-06-19T19:04:51.167300Z

No, just trying to understand what it does. I think it's probably just time to read the code.

2020-06-19T19:07:27.167500Z

Hi @manutter51. Yep, that part is pretty clear. It looks like a middleware system.

2020-06-19T19:10:44.167700Z

There’s also a “Basics” and “Browser Integration” section you can access from the topics on the left of that page.

2020-06-19T19:46:07.167900Z

Ah, I think "Browser Integration" > "Easy" and reading the code cleared things up for me. My previous mental model was that the current route would be stored in the app-state and there would be a sync between that and browser history. Thanks for the help.

👍 1
joshkh 2020-06-19T22:00:32.169200Z

i'm sure the answer is obvious, but how might i go about using ring/spec to coerce a parameter to a long?