Yes that is correct. These forms are equivalent: (defn login-page [] ...)
(def login-page (fn [] .... )) Thanks, Ambrose On Wed, Jun 15, 2011 at 1:51 AM, octopusgrabbus <[email protected]>wrote: > In the following code (from Brian Carper's cow-blog) > > (defn login-page > "Page to let an admin log in." > [] > {:title "Login" > :body [:div [:h3 "Log in"] > (form-to [:post "/login"] > (form-row "Username" "username" text-field) > (form-row "Password" "password" password-field) > (submit-row "Log in"))]}) > > on the third line there are empty vector brackets. I believe this is > defining the function as having now parameters. Is that correct? > > Thank you. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
