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

weavejester/compojure

Repository files navigation

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.

About

A concise routing library for Ring/Clojure

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 40

AltStyle によって変換されたページ (->オリジナル) /