The Wayback Machine - https://web.archive.org/web/20161026102015/https://github.com/weavejester/compojure
Skip to content
A concise routing library for Ring/Clojure
Clojure HTML
Latest commit 46cc0a8 Jul 22, 2016 @weavejester Release 1.6.0-beta1

README.md

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.5.1"]

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 © 2016 James Reeves

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

You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.