diff options
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" + } +) |
