diff options
| author | Joshua Peek <josh@joshpeek.com> | 2012-06-22 10:09:24 -0500 |
|---|---|---|
| committer | Joshua Peek <josh@joshpeek.com> | 2012-06-22 10:09:24 -0500 |
| commit | 5521dd08a062f39036b045c819201b6235fb32f8 (patch) | |
| tree | e3085d9a7a58f084eabefc19987f3acb029d03ac /samples/opa/hello_syntax2.opa | |
| parent | b571c47a1c61394d371dcd4b8d2165b4e16f4e84 (diff) | |
Move test fixtures to samples/
Diffstat (limited to 'samples/opa/hello_syntax2.opa')
| -rw-r--r-- | samples/opa/hello_syntax2.opa | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/samples/opa/hello_syntax2.opa b/samples/opa/hello_syntax2.opa new file mode 100644 index 0000000..14c0c93 --- /dev/null +++ b/samples/opa/hello_syntax2.opa @@ -0,0 +1,11 @@ +/** + * To compile & run on port 8080: + * opa --parser js-like hello_syntax2.opa -- + */ +Server.start( + Server.http, + { + page: function() { <h1>Hello, world</h1> }, + title: "Hello, world" + } +) |
