I tried Reitit a couple of months ago so maybe I'll look at it again.
|| > (bidi.bidi/match-route ["/foo" :bar] "/foo")
|| {:handler :bar}
Yeah, the simplicity of bidi is nice. I couldn't figure out if it would
also parse out query params. Like:
"/foo?a=123"
{:handler :bar :query-params {:a "123
Bidi probably would work fine for what you want, but I'll also second the
reitit suggestion.
On Wed, Apr 21, 2021 at 4:54 PM Harold wrote:
> >> ...is intended for use with Ring middleware, HTTP servers...
> >
> > sorta made me think it wouldn't work in a non-web app.
> >
>
> Understood.
>
> One
>> ...is intended for use with Ring middleware, HTTP servers...
>
> sorta made me think it wouldn't work in a non-web app.
>
Understood.
One of the coolest things about bidi is that it's just functions that
operate on data.
Nothing ring, web, or http specific going on here:
> (require 'bidi.bi
Cool. I thought about bidi but this:
...is intended for use with Ring middleware, HTTP servers...
sorta made me think it wouldn't work in a non-web app.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@go
I think bidi fits the bill: https://github.com/juxt/bidi
It's not tied too tightly to any specific (or even the idea of a) web
backend and it does not require cljs.
Hope that helps,
-Harold
On Sunday, April 18, 2021 at 5:58:53 PM UTC-6 dsblak...@gmail.com wrote:
> Howdy,
>
> Writing a desktop
>
> For 'routing' specifically, if you want a more formal system we used state
> machines in the past and recently Clojure has a really nice additional
> possibility there - https://github.com/lucywang000/clj-statecharts.
I really like the idea of the app being as stateless as possible, to where
For 'routing' specifically, if you want a more formal system we used state
machines in the past and recently Clojure has a really nice additional
possibility there - https://github.com/lucywang000/clj-statecharts.
For general UI programming if you are using javafx then I really like cljfx
- https:
As far as I know, reitit could probably do what you want. It works on
ClojureScript too.
> On 19 Apr 2021, at 01.58, Blake Watson wrote:
>
> Howdy,
>
> Writing a desktop app and thinking describing routes is the way to go, as far
> as setting up the flow through the program. There are quite a
Howdy,
Writing a desktop app and thinking describing routes is the way to go, as
far as setting up the flow through the program. There are quite a few
Clojure routing libraries but most seem to assume it's a web backend
(naturally), and the ones that don't seem to be ClojureScript (which I
can't u