mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
0.2.10-alpha1
This commit is contained in:
parent
d8d27a49fa
commit
8081fe1a49
5 changed files with 20 additions and 11 deletions
|
|
@ -3,16 +3,16 @@
|
|||
[Reitit](https://github.com/metosin/reitit) is a fast data-driven router for Clojure(Script).
|
||||
|
||||
* Simple data-driven [route syntax](./basics/route_syntax.md)
|
||||
* [Route conflict resolution](./basics/route_conflicts.md)
|
||||
* Route [conflict resolution](./basics/route_conflicts.md)
|
||||
* First-class [route data](./basics/route_data.md)
|
||||
* Bi-directional routing
|
||||
* [Pluggable coercion](./coercion/coercion.md) ([schema](https://github.com/plumatic/schema) & [clojure.spec](https://clojure.org/about/spec))
|
||||
* Helpers for [ring](./ring/ring.html), [http](./http/interceptors.md) & [the browser](./frontend/basics.html)
|
||||
* Helpers for [ring](./ring/ring.md), [http](./http/interceptors.md), [pedestal](./http/pedestal.md) & [frontend](./frontend/basics.md)
|
||||
* Extendable
|
||||
* Modular
|
||||
* [Fast](performance.md)
|
||||
|
||||
Modules:
|
||||
## Main Modules
|
||||
|
||||
* `reitit` - all bundled
|
||||
* `reitit-core` - the routing core
|
||||
|
|
@ -27,6 +27,10 @@ Modules:
|
|||
* `reitit-interceptors` - [common interceptors](./http/default_interceptors.md) for `reitit-http`
|
||||
* `reitit-sieppari` support for [Sieppari](https://github.com/metosin/sieppari) Interceptors
|
||||
|
||||
## Extra modules
|
||||
|
||||
* `reitit-pedestal` support for [Pedestal](http://pedestal.io)
|
||||
|
||||
## Latest version
|
||||
|
||||
All bundled:
|
||||
|
|
@ -61,6 +65,11 @@ Optionally, the parts can be required separately:
|
|||
[metosin/reitit-sieppari "0.2.9"]
|
||||
```
|
||||
|
||||
```clj
|
||||
;; pedestal
|
||||
[metosin/reitit-pedestal "0.2.10-alpha1"]
|
||||
```
|
||||
|
||||
There is [#reitit](https://clojurians.slack.com/messages/reitit/) in [Clojurians Slack](http://clojurians.net/) for discussion & help.
|
||||
|
||||
# Examples
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[Pedestal](http://pedestal.io/) is a backend web framework for Clojure. `reitit-pedestal` provides an alternative routing engine for Pedestal.
|
||||
|
||||
```clj
|
||||
[metosin/reitit-pedestal "0.2.9"]
|
||||
[metosin/reitit-pedestal "0.2.10-alpha1"]
|
||||
```
|
||||
|
||||
Why should one use reitit instead of the Pedestal [default routing](http://pedestal.io/reference/routing-quick-reference)?
|
||||
|
|
@ -26,8 +26,8 @@ A minimalistic example on how to to swap the default-router with a reitit router
|
|||
```clj
|
||||
; [io.pedestal/pedestal.service "0.5.5"]
|
||||
; [io.pedestal/pedestal.jetty "0.5.5"]
|
||||
; [metosin/reitit-pedestal "0.2.9"]
|
||||
; [metosin/reitit "0.2.9"]
|
||||
; [metosin/reitit-pedestal "0.2.10-alpha1"]
|
||||
; [metosin/reitit "0.2.10-alpha1"]
|
||||
|
||||
(ns example.server
|
||||
(:require [io.pedestal.http :as server]
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[io.pedestal/pedestal.service "0.5.5"]
|
||||
[io.pedestal/pedestal.jetty "0.5.5"]
|
||||
[metosin/reitit-pedestal "0.2.9"]
|
||||
[metosin/reitit "0.2.9"]]
|
||||
[metosin/reitit-pedestal "0.2.10-alpha1"]
|
||||
[metosin/reitit "0.2.10-alpha1"]]
|
||||
:repl-options {:init-ns example.server})
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[io.pedestal/pedestal.service "0.5.5"]
|
||||
[io.pedestal/pedestal.jetty "0.5.5"]
|
||||
[metosin/reitit-pedestal "0.2.9"]
|
||||
[metosin/reitit "0.2.9"]]
|
||||
[metosin/reitit-pedestal "0.2.10-alpha1"]
|
||||
[metosin/reitit "0.2.10-alpha1"]]
|
||||
:repl-options {:init-ns example.server})
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(defproject metosin/reitit-pedestal "0.2.9"
|
||||
(defproject metosin/reitit-pedestal "0.2.10-alpha1"
|
||||
:description "Reitit + Pedestal Integration"
|
||||
:url "https://github.com/metosin/reitit"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
Loading…
Reference in a new issue