compojure

by weavejester

weavejester / compojure

A concise routing library for Ring/Clojure

3.8K Stars 251 Forks Last release: Not found Eclipse Public License 1.0 951 Commits 63 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.