                     (data/send-email email admin-email subject body)
                     (redirect-after-post "/")))
            (GET "/about" []
-                (templates/about))
+                (html-response (templates/about)))
 
 
            ; "api urls"


           ; "image urls"
           (GET templates/*image-url* []
               (render-html-images (data/get-images
                                       (:id (data/get-current-user)) 10 0)))
           (wrap-multipart-params
               (POST templates/*image-url* {params :params}
                   (let [image (get params "image")

              [clj-time.coerce :as clj-time-coerce]
              [clj-json.core :as json]))

(defn json-response
    "called on all JSON responses to set content-type, status, render as json -
    should be ring middleware?"
    [data & [status]]
    {:status (or status 200)
     :headers {"Content-Type" "application/json;charset=utf-8"}
     :body (json/generate-string data)})

(defn html-response
    "called on all HTML responses to set content-type, status, etc -
    should be ring middleware?"
    [data & [status]]
    {:status (or status 200)
     :headers {"Content-Type" "text/html;charset=utf-8"}
     :body data})

(defn render-post-json [post]
    {:id (:id post), :title (:title post), :content (:content post),
