Skip to content

Commit

Permalink
Slight adjustments for new Server.start
Browse files Browse the repository at this point in the history
  • Loading branch information
akoprow committed Dec 3, 2011
1 parent 298db8a commit 54759a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions hello_chat.opa
Expand Up @@ -96,10 +96,10 @@ function start() {
* embedding statically the contents of directory "resources", using the global stylesheet * embedding statically the contents of directory "resources", using the global stylesheet
* "resources/css.css" and the user interface defined in [start]. * "resources/css.css" and the user interface defined in [start].
*/ */
Server.start(Server.http, Server.start(
{ title: "Chat" Server.http,
, resources: @static_resource_directory("resources") [ {resources: @static_resource_directory("resources")}
, css: ["resources/css.css"] , {register: ["resources/css.css"]}
, page: start , {title: "Chat", page:start }
} ]
) )
4 changes: 1 addition & 3 deletions hello_chat_min.opa
Expand Up @@ -77,6 +77,4 @@ function start() {
* embedding statically the contents of directory "resources", using the global stylesheet * embedding statically the contents of directory "resources", using the global stylesheet
* "resources/css.css" and the user interface defined in [start]. * "resources/css.css" and the user interface defined in [start].
*/ */
Server.start(Server.http, Server.start(Server.http, {title: "Chat", page: start })
Server.simple({title: "Chat", page: start})
)

0 comments on commit 54759a2

Please sign in to comment.