Permalink
Browse files

Slight adjustments for new Server.start

  • Loading branch information...
1 parent 298db8a commit 54759a20e4bc788184edfc373dcaf034b10fbb15 @akoprow akoprow committed Dec 3, 2011
Showing with 7 additions and 9 deletions.
  1. +6 −6 hello_chat.opa
  2. +1 −3 hello_chat_min.opa
View
@@ -96,10 +96,10 @@ function start() {
* embedding statically the contents of directory "resources", using the global stylesheet
* "resources/css.css" and the user interface defined in [start].
*/
-Server.start(Server.http,
- { title: "Chat"
- , resources: @static_resource_directory("resources")
- , css: ["resources/css.css"]
- , page: start
- }
+Server.start(
+ Server.http,
+ [ {resources: @static_resource_directory("resources")}
+ , {register: ["resources/css.css"]}
+ , {title: "Chat", page:start }
+ ]
)
View
@@ -77,6 +77,4 @@ function start() {
* embedding statically the contents of directory "resources", using the global stylesheet
* "resources/css.css" and the user interface defined in [start].
*/
-Server.start(Server.http,
- Server.simple({title: "Chat", page: start})
-)
+Server.start(Server.http, {title: "Chat", page: start })

0 comments on commit 54759a2

Please sign in to comment.