Fix test fixtures for opa and add some comments.

This commit is contained in:
Alok Menghrajani
2012-02-01 18:03:06 -08:00
parent a096e3df66
commit 73efe37568
2 changed files with 12 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
server = Server.one_page_bundle("Hello World",
[],
[],
_ -> <h1>Hello, world</h1>)
/**
* To compile & run on port 8080:
* opa hello_syntax1.opa --
*/
server = Server.one_page_server(
"Hello, world",
-> (<h1>Hello, world</h1>)
)

View File

@@ -1,3 +1,7 @@
/**
* To compile & run on port 8080:
* opa --parser js-like hello_syntax2.opa --
*/
Server.start(
Server.http,
{