aboutsummaryrefslogtreecommitdiff
path: root/samples/Opa/hello_syntax1.opa
diff options
context:
space:
mode:
Diffstat (limited to 'samples/Opa/hello_syntax1.opa')
-rw-r--r--samples/Opa/hello_syntax1.opa9
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/Opa/hello_syntax1.opa b/samples/Opa/hello_syntax1.opa
new file mode 100644
index 0000000..88a9cc8
--- /dev/null
+++ b/samples/Opa/hello_syntax1.opa
@@ -0,0 +1,9 @@
+/**
+ * To compile & run on port 8080:
+ * opa hello_syntax1.opa --
+ */
+server = Server.one_page_server(
+ "Hello, world",
+ -> (<h1>Hello, world</h1>)
+)
+