第31页
卡 (说好的事情就要去做不做说他干嘛)
- 页码:第31页
compojure is surely amazing to people who love being well-organized. Although :resource in rails by default gives out seven operations.
(defroutes app-routes (context "/users/:id" [id] (GET "/profile" [] (get-user-profile id) (GET "/setting" [] (get-user-setting id)))
The context macro exploits the fact that handlers are closures. When the outer context handler closes over the common parameters, they are also available to handlers defined inside it. 引自第31页
32人阅读
卡对本书的所有笔记 · · · · · ·
-
第28页
In Ring. The request map is really standard to RFC. What we got here? :server-port, :se...
-
第30页
compojure gives ability to create routes in clojure easily. apart from the standard ver...
-
第31页
-
第32页
Clojure deconstructing. example: (def rgb [255 0 0]) (let [[r g b] rgb] (printf "red is...
-
第33页 Application Architecture
I guess this is the most important part of learning a new framework for web development...
> 查看全部15篇
说明 · · · · · ·
表示其中内容是对原文的摘抄