weavejester/compojure
Fork: 256 Star: 4086 (更新于 2024-10-24 16:14:09)
license: EPL-1.0
Language: Clojure .
A concise routing library for Ring/Clojure
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 project.clj
file:
[compojure "1.7.1"]
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 © 2024 James Reeves
Distributed under the Eclipse Public License, the same as Clojure.
最近版本更新:(数据更新于 2024-08-23 11:44:15)
主题(topics):
clojure, http, ring, routing
weavejester/compojure同语言 Clojure最近更新仓库
2024-11-04 23:45:19 penpot/penpot
2024-11-04 22:29:17 logseq/logseq
2024-10-03 02:18:04 metabase/metabase
2023-02-20 20:09:25 adamtornhill/code-maat
2021-12-07 04:58:58 tonsky/FiraCode
2018-04-17 22:19:15 emanjavacas/cosycat