Routes-as-data routing libraries, such Bidi or (I know... complicated...) Pedestal, should be able to (fairly) easily create abstractions that permit convention-based routing.
It's not exactly what you're talking about, but I made a little toy example of how you could mimic Rails resource routing on top of Gate. https://github.com/mischov/gate/blob/master/examples/gate/examples/crud_example.clj On Tuesday, May 5, 2015 at 6:53:14 PM UTC-5, Sean Corfield wrote: > > Perhaps I should rephrase that as a request for simple, convention-based > routing that works with Ring directly? :) > > I’m sure Pedestal’s great, but just looking at the repo and documentation > doesn’t exactly scream "simple"… I just don’t want to have to read that > much documentation to get a simple web app up and running. > > Sean > > On May 5, 2015, at 4:45 PM, Paul deGrandis <paul.de...@gmail.com > <javascript:>> wrote: > > Pedestal's router is just an interceptor in the chain. You could easily > write an interceptor that looks at the request and sees if it can resolve a > var by that name. You could even stack multiple routers - first the var/fn > lookup and failing that, a more explicit router. > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.