Compojure is a compact and expressive routing library for Ring (Clojure's web server abstraction), enabling the composition of web applications using simple, declarative routing macros inspired by frameworks like Sinatra or web.py. This small Compojure application demonstrates creating a Ring handler from two routes. The simplest way to get started with Compojure is to use Leiningen, the standard Clojure build tool. If you haven't already, download and install Leiningen. You'll need Leiningen 2.0.0 or later for the instructions to work.
Features
- Declarative routing DSL with macros like GET, POST, etc.
- Seamless integration with Ring middleware and handlers
- Concise composition of web routes and resources
- Support for route fallbacks (e.g. not-found)
- Lightweight yet powerful for web application structure
- Backed by mature documentation, community templates, and tooling
Categories
LibrariesLicense
Eclipse Public LicenseFollow Compojure
You Might Also Like
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Compojure!