Compojure

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

Github星跟踪图

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.

主要指标

概览
名称与所有者weavejester/compojure
主编程语言Clojure
编程语言Clojure (语言数: 2)
平台
许可证Eclipse Public License 1.0
所有者活动
创建于2008-05-01 00:31:39
推送于2024-01-31 18:54:43
最后一次提交2024-01-31 18:54:32
发布数66
最新版本名称1.7.1 (发布于 2024-01-31 18:54:32)
第一版名称0.3.1 (发布于 2009-09-28 17:01:09)
用户参与
星数4.1k
关注者数107
派生数259
提交数1k
已启用问题?
问题数159
打开的问题数5
拉请求数31
打开的拉请求数1
关闭的拉请求数29
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?