aboutsummaryrefslogtreecommitdiff
path: root/example/basic/reluax.luax
diff options
context:
space:
mode:
Diffstat (limited to 'example/basic/reluax.luax')
-rw-r--r--example/basic/reluax.luax20
1 files changed, 20 insertions, 0 deletions
diff --git a/example/basic/reluax.luax b/example/basic/reluax.luax
new file mode 100644
index 0000000..bba3e1a
--- /dev/null
+++ b/example/basic/reluax.luax
@@ -0,0 +1,20 @@
+local route = function(path)
+ if path == '/' then
+ return 200,
+ <html>
+ <head>
+ <title>basic-example</title>
+ </head>
+ <body>
+ <h1>This is the simplest example of a Reluax application.</h1>
+ </body>
+ </html>
+ end
+
+ return 404, 'Not Found'
+end
+
+return {
+ name = 'basic-example',
+ route = route
+}