Permalink
Browse files

fix the tutorial for the latest changes

  • Loading branch information...
1 parent b182bd6 commit af1745ef95ea75d048914945178afbc0a356fce7 @nicferrier committed Apr 24, 2012
Showing with 12 additions and 5 deletions.
  1. +12 −5 elnode_tutorial.creole
View
@@ -9,7 +9,8 @@ and run web servers and services from inside Emacs.
== Installing Elnode ==
-Elnode is now packaged in [[http://marmalade-repo.org/packages/elnode|marmalade]].
+You should install Elnode from the package available on
+[[http://marmalade-repo.org/packages/elnode|Marmalade]].
For dealing with package repositories check out the
[[http://www.emacswiki.org/emacs/ELPA|Emacs Wiki]] but the short version
@@ -56,7 +57,7 @@ enter the Lisp code for the handler, for that old time feel you could type this
(elnode-http-return
httpcon
"<html><body><h1>Hello World</h1></body></html>"))
-(elnode-start 'my-elnode-hello-world-handler 8028 "localhost")
+(elnode-start 'my-elnode-hello-world-handler :port 8028 :host "localhost")
}}}
make the Lisp code //live//
@@ -130,7 +131,7 @@ Add this Lisp:
{{{
(defconst my-elnode-webserver-handler
(elnode-webserver-handler-maker "~/myspecialdocroot"))
-(elnode-start 'my-elnode-webserver-handler 8001 "localhost")
+(elnode-start 'my-elnode-webserver-handler :port 8001 :host "localhost")
}}}
Now evaluate that with: {{{M-x eval-buffer}}}
@@ -250,7 +251,10 @@ served by the editor service.
Now let's start the service:
{{{
-M-x elnode-start my-elnode-editor-handler 8002 localhost
+M-x elnode-start
+my-elnode-editor-handler
+8002
+localhost
}}}
Now try and hit [[http://localhost:8002]] - you should see whatever
@@ -306,7 +310,10 @@ M-x elnode-stop 8002
And now start the new server with the dispatcher handler:
{{{
-M-x elnode-start my-elnode-editor-dispatcher-handler 8002 localhost
+M-x elnode-start
+my-elnode-editor-dispatcher-handler
+8002
+localhost
}}}
Now visit [[http://localhost:8002]] and see the buffer as it stands

0 comments on commit af1745e

Please sign in to comment.