Fetching contributors…
Cannot retrieve contributors at this time
81 lines (46 sloc) 1.92 KB

Changes Between 1.1.0 and 1.2.0

Clojure 1.7 by Default

The project now depends on org.clojure/clojure version 1.7.0. It is still compatible with Clojure 1.5 and if your project.clj depends on a different version, it will be used, but 1.7 is the default now.

Changes Between 1.0.0 and 1.1.0

Extra Keys as Query Parameters

Generate and append query from data keys that don't appear as path segments.

Contributed by Ray Miller.

Back-reference Escaping

When replacing path segments, use re-quote-replacement to escape any back-references in the replacement string.

Contributed by Ray Miller.

Changes Between 1.0.0-rc3 and 1.0.0

url-for Preserves Paths From Base URL

Leading path component from *base-url* is now preserved when constructing path in url-for.

Contributed by Ray Miller.

Changes Between 1.0.0-rc2 and 1.0.0-rc3

Catch All Route

clojurewerkz.route-one.compojure/catch-all is a new helper macro that generates a route that matches any path.

It is useful for defining fallback routes (such as 404 or 500 status pages).

Changes Between 1.0.0-rc1 and 1.0.0-rc2

Tight Compojure integration

It is now possible to define named Compojure routes with Route One:

(ns my-app
  (:require [compojure.core :as compojure :as compojure])
  (:use clojurewerkz.route-one.compojure))

(compojure/defroutes main-routes
  (GET about request (handlers.root/root-page request)) ;; will use /about as a template
  (GET documents request (handlers.root/documents-page request)) ;; will use /documents as a template)

This will generate main-routes in same exact manner Compojure generates them, but will also add helper functions for building urls (about-path, about-url, documents-path, document-url and so on).

To use this feature, you'll have to bring in Compojure as a dependency to your project:

[compojure "1.1.5"]


Initial release we consider stable.