James, et al.,
> I'm not sure. There exist better alternatives to the `wrap-reload`
> middleware anyway, such as the lein-ring plugin.
>
I didn't know there was? What I understood of wrap-reload is that I
didn't have to restart "lein ring server" at the command line
everytime I made a change to my core.clj file???
How do I set up lein-ring to give me the same functionality?
Cause, I'd REALLY appreciate that!
Appears I'd save a LOT of time! It's painful having to restart jvm
everytime I intend to make a change to the html, eh....
>
> Yes, because "x" is a parameter that is never set. In my original example:
>
> (GET "/set" [x :as {session :session}]
> {:session (assoc session :x x)
> :body (str "You set x = " x)})
>
> So you'd set it by going to "http://localhost:3000/set?x=foo".
>
> You then hard-coded the :x session key to "Shree", but you didn't
> change the value of the "x" variable:
>
> (GET "/set" [x :as {session :session}]
> {:session (assoc session :x "Shree")
> :body (str "You set x = " x)})
Gosh, I feel STUPID!
Thanks everyone for their patience and their time! I'm on my way!
Regards,
shree
--
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