aboutsummaryrefslogtreecommitdiff
path: root/example/hello-world/index.luax
diff options
context:
space:
mode:
Diffstat (limited to 'example/hello-world/index.luax')
-rw-r--r--example/hello-world/index.luax14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/hello-world/index.luax b/example/hello-world/index.luax
new file mode 100644
index 0000000..3dff259
--- /dev/null
+++ b/example/hello-world/index.luax
@@ -0,0 +1,14 @@
+return function()
+ return <html>
+ <head>
+ <title>Reluax</title>
+ </head>
+ <body>
+ <h1>Reluax Test</h1>
+ <p>Random number for you: {$ tostring(math.floor(math.random() * 100)) $}</p>
+ <p style={ "font-size: " .. tostring(math.floor(math.random() * 100)) .. 'px' }>
+ What font size is this?
+ </p>
+ </body>
+ </html>
+end