aboutsummaryrefslogtreecommitdiff
path: root/example/index.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example/index.lua')
-rw-r--r--example/index.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/example/index.lua b/example/index.lua
new file mode 100644
index 0000000..76e1c0b
--- /dev/null
+++ b/example/index.lua
@@ -0,0 +1,29 @@
+return function()
+ return {
+ tag = "html",
+ children = {
+ {
+ tag = "head",
+ children = {
+ {
+ tag = "title",
+ children = {
+ "Hello World"
+ }
+ }
+ }
+ },
+ {
+ tag = "body",
+ children = {
+ {
+ tag = "h1",
+ children = {
+ "Hello World"
+ }
+ }
+ }
+ }
+ }
+ }
+end