Compojure

适用于 Ring/Clojure 的简明路由库。「A concise routing library for Ring/Clojure」

Github stars Tracking Chart

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.7.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 © 2024 James Reeves

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

Overview

Name With Ownerweavejester/compojure
Primary LanguageClojure
Program languageClojure (Language Count: 2)
Platform
License:Eclipse Public License 1.0
Release Count66
Last Release Name1.7.1 (Posted on 2024-01-31 18:54:32)
First Release Name0.3.1 (Posted on 2009-09-28 17:01:09)
Created At2008-05-01 00:31:39
Pushed At2024-01-31 18:54:43
Last Commit At2024-01-31 18:54:32
Stargazers Count4.1k
Watchers Count108
Fork Count259
Commits Count1k
Has Issues Enabled
Issues Count157
Issue Open Count6
Pull Requests Count31
Pull Requests Open Count1
Pull Requests Close Count29
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top