Created
December 16, 2011 08:30
-
-
Save hozumi/1485121 to your computer and use it in GitHub Desktop.
Moustache
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
;; 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