Skip to content

Commit

Permalink
Add Clojure response.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony committed May 7, 2012
1 parent fdeb559 commit 0aa9f1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/noir/response.clj
Expand Up @@ -58,3 +58,11 @@
[]
{:status 200
:body ""})

(defn clojure
"Wraps the response in the `application/clojure` content-type
and calls pr-str on the Clojure data stuctures passed in."
[data]
(response/content-type
"application/clojure; charset=utf-8"
(pr-str data)))

0 comments on commit 0aa9f1c

Please sign in to comment.