Compojure is a small routing library for Ring that allows web applications to be composed of small, independent parts.
Add the following dependency to your
All documentation can be found on cljdoc:
As well as an overview over Compojure's API
This small Compojure application demonstrates creating a Ring handler from two routes:
(:require [compojure.core :refer :all]
[compojure.route :as route]))
(GET "/"  "<h1>Hello World</h1>")
(route/not-found "<h1>Page not found</h1>"))
Also refer to the Getting Started page on the wiki.
Copyright © 2018 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.
Edit on GitHub