Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A concise routing library for Ring/Clojure

License

NotificationsYou must be signed in to change notification settings

weavejester/compojure

Repository files navigation

Compojure is a small routing library forRing that allows webapplications 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

Usage

This small Compojure application demonstrates creating a Ring handlerfrom two routes:

(nshello-world.core  (:require [compojure.core:refer:all]            [compojure.route:as route]))(defroutesapp  (GET"/" []"<h1>Hello World</h1>")  (route/not-found"<h1>Page not found</h1>"))

Also refer to theGetting Started page on the wiki.

License

Copyright © 2025 James Reeves

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

About

A concise routing library for Ring/Clojure

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp