diff options
| -rw-r--r-- | example/basic/reluax.luax | 20 | ||||
| -rw-r--r-- | example/hello-world/index.luax (renamed from example/index.luax) | 0 | ||||
| -rw-r--r-- | example/hello-world/reluax.luax (renamed from example/reluax.luax) | 0 |
3 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 +} diff --git a/example/index.luax b/example/hello-world/index.luax index 3dff259..3dff259 100644 --- a/example/index.luax +++ b/example/hello-world/index.luax diff --git a/example/reluax.luax b/example/hello-world/reluax.luax index 2562fb1..2562fb1 100644 --- a/example/reluax.luax +++ b/example/hello-world/reluax.luax |
