Need help with compojure?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

weavejester
3.9K Stars 254 Forks Eclipse Public License 1.0 953 Commits 5 Opened issues

Description

A concise routing library for Ring/Clojure

Services available

!
?

Need anything else?

Contributors list

# 15,519
Clojure
repl
Clojure...
epl
560 commits
# 110,530
Clojure
Shell
Front e...
Clojure...
25 commits
# 134,663
Clojure
Shell
SQL
Postgre...
18 commits
# 210,408
Clojure
HTML
HTTP
Shell
15 commits
# 7,378
Firefox
Clojure
Swift
SQLite
6 commits
# 58,136
Shell
Clojure
Redis
hiccup
6 commits
# 35,695
Clojure
HTML
system-...
design-...
3 commits
# 193,652
Clojure
Shell
HTTP
docs-ge...
3 commits
# 52,580
Clojure
nrepl
repl
Clojure...
3 commits
# 168,801
Common ...
Clojure
sentry
currenc...
2 commits
# 14,793
Java
cypher
Shell
Scala
2 commits
# 149,783
Clojure
pymongo
MongoDB
Flask
2 commits
# 451,503
Clojure
HTML
HTTP
1 commit
# 455,180
Clojure
HTML
HTTP
1 commit
# 44,884
Clojure
Clojure...
kafka
Rust
1 commit
# 255,655
Lua
Clojure
HTTP
boot
1 commit
# 36,133
Clojure
Java
websock...
Shell
1 commit
# 114,543
Ruby
Clojure
Clojure...
Shell
1 commit
# 16,756
Clojure
epl
Clojure...
edn
1 commit
# 238,768
Clojure
leining...
aws-lam...
Clojure...
1 commit

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

project.clj
file:
[compojure "1.6.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 "/" [] "

Hello World

") (route/not-found "

Page not found

"))

Also refer to the Getting Started page on the wiki.

License

Copyright © 2020 James Reeves

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.