Apr 14, 2018
Index of all namespaces
A concise routing library for Ring
Functions for coercing route parameters into different types.
A DSL for building Ring handlers from smaller routes. Compojure routes are semantically the same as Ring handlers, with the exception that routes may return nil to indicate they do not match. This namespace provides functions and macros for concisely constructing routes and combining them together to form more complex functions.
Functions to create Ring handlers from routes. This namespace has been DEPRECATED in favor of the ring-defaults library.
Optional middleware to enhance routing in Compojure.
A protocol for generating Ring response maps
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
This small Compojure application demonstrates creating a Ring handler from two routes:
(ns hello-world.core (:require [compojure.core :refer :all] [compojure.route :as route])) (defroutes app (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.