weavejester/compojure

A concise routing library for Ring/Clojure

4,111

stars

744

commits

Clojure

primary language

Sep 15, 2025

updated

clojure
http
ring
routing

README

Compojure Build Status

Compojure is a small routing library for Ring that allows web applications to be composed of small, independent parts.

Installation

Add the following dependency to your deps.edn file:

compojure/compojure {:mvn/version "1.7.2"}

Or to your Leiningen project file:

[compojure "1.7.2"]

Documentation

Community

Usage

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.

License

Copyright © 2025 James Reeves

Distributed under the Eclipse Public License, the same as Clojure.

Contributors

(top 30 of 36)

weavejester

626 commits

arohner

32 commits

budu

18 commits

lrenn

15 commits

weavejester/compojure

A concise routing library for Ring/Clojure

4,111

stars

744

commits

Clojure

primary language

Sep 15, 2025

updated

clojure
http
ring
routing

README

Compojure Build Status

Compojure is a small routing library for Ring that allows web applications to be composed of small, independent parts.

Installation

Add the following dependency to your deps.edn file:

compojure/compojure {:mvn/version "1.7.2"}

Or to your Leiningen project file:

[compojure "1.7.2"]

Documentation

Community

Usage

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.

License

Copyright © 2025 James Reeves

Distributed under the Eclipse Public License, the same as Clojure.

Contributors

(top 30 of 36)

weavejester

626 commits

arohner

32 commits

budu

18 commits

lrenn

15 commits

Languages

Clojure

99.9%