Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41bfdff
commit c62551f
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
# ring-json-response | ||
|
||
I'm an app. Or maybe I'm a library? I haven't decided yet. | ||
A small library for returning JSON responses from a Ring handler. | ||
|
||
The choice is up to you! | ||
## Install | ||
|
||
Add the following dependency to your `project.clj` file: | ||
|
||
[ring-json-response "0.1.0-SNAPSHOT"] | ||
|
||
## Usage | ||
|
||
FIXME | ||
```clojure | ||
(use 'ring.util.json) | ||
|
||
(defn handler [request] | ||
(json-response {:foo "bar"}) | ||
``` | ||
|
||
## License | ||
|
||
Copyright © 2012 FIXME | ||
Copyright © 2012 James Reeves | ||
|
||
Distributed under the Eclipse Public License, the same as Clojure. |