Permalink
Browse files

Updated README with more concise example

  • Loading branch information...
weavejester committed May 17, 2010
1 parent c122f5e commit cc6abc6f994e6e42effffbd91d95f1f7e95d0b9d
Showing with 5 additions and 7 deletions.
  1. +5 −7 README.md
View
@@ -11,14 +11,12 @@ Here's a small web application written using Compojure and
[Ring](http://github.com/mmcgrana/ring).
(ns hello-world
- (:use compojure.core
- ring.adapter.jetty))
+ (:use compojure.core, ring.adapter.jetty)
+ (:require [compojure.route :as route])
(defroutes main-routes
- (GET "/" []
- "<h1>Hello World</h1>")
- (ANY "*" []
- {:status 404, :body "<h1>Page not found</h1>"}))
+ (GET "/" [] "<h1>Hello World</h1>")
+ (route/not-found "<h1>Page not found</h1>")))
(run-jetty main-routes {:port 8080})
@@ -30,7 +28,7 @@ The easiest way to use Compojure in your own projects is via
[Leiningen](http://github.com/technomancy/leiningen). Add the following
dependency to your project.clj file:
- [compojure "0.4.0-SNAPSHOT"]
+ [compojure "0.4.0-RC3"]
To build Compojure from source, run the following commands:

0 comments on commit cc6abc6

Please sign in to comment.