项目
在 GitHub 查看 Compojure
weavejester/compojure
关于
适用于 Ring/Clojure 的简洁路由库
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Compojure 
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 deps.edn file:
compojure/compojure {:mvn/version "1.7.2"}
Or to your Leiningen project file:
[compojure "1.7.2"]
Documentation
Community
- Google Group
- #compojure on Freenode IRC
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 © 2025 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.
探索相关项目
加载中…