Skip to content

Instantly share code, notes, and snippets.

@hozumi
Created December 16, 2011 08:30
Show Gist options
  • Save hozumi/1485121 to your computer and use it in GitHub Desktop.
Save hozumi/1485121 to your computer and use it in GitHub Desktop.
Moustache
;; moustache style
(defn update-thread [thread-id req]
...)
(def api-app
(mous/app
["threads" thread-id] {:put (partial update-thread thread-id)}))
;; path bind into request-map
(defn update-thread [{{:keys [thread-id]} :route-params :as req}]
...)
(def api-app
(mous/app
["threads" thread-id] {:put update-thread}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment