Added Lua example.

This commit is contained in:
Johannes Findeisen 2024-02-16 02:47:32 +01:00
commit 7e72b0cd01
2 changed files with 17 additions and 3 deletions

14
lua/lua.lua Executable file
View file

@ -0,0 +1,14 @@
---
permalink: /cgi/lua/index.lua
---
print("Content-type: text/plain")
print()
print("Hello from Lua!")
print()
print("print(os.date('%a %b %d %H:%M:%S %Z %Y'))")
print(os.date("%a %b %d %H:%M:%S %Z %Y"))
print()
print("for i = 1,10 do print(i) end")
for i = 1,10 do print(i) end