A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/weavejester/compojure below:

weavejester/compojure: A concise routing library for Ring/Clojure

Compojure is a small routing library for Ring that allows web applications to be composed of small, independent parts.

Add the following dependency to your project.clj file:

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.

Copyright © 2024 James Reeves

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4