On 02/16/2011 05:10 PM, Rasmus Svensson wrote:

With the web server up an running, I open up http://localhost:8080/ in
my browser. Now, lets assume that I want to change the "Hello, world!"
text to "Hello, Clojure-land!". I open the controller.clj file, edit
the corresponding line and press C-M-x somewhere within the defn form
to evaluate it. The change is then visible directly when refreshing
the page in the browser.

If I have written a new function in the controller namespace and want
to try it in the repl, I first enter the namespace by pressing C-c M-p
<RET>  in the controller.clj file. The slime repl is now in that
namespace, and I can, for instance, evaluate (my-app {:uri "/test",
:request-method :get}).

I must have read about C-M-x, but it didn't "click". Many thanks for your excellent answer, it's already making me a much happier camper :)


--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/

--
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

Reply via email to