From cbd8d69e6dcdc48adcac12abd0a0064c7d2b6b67 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Wed, 12 Mar 2014 12:47:41 +0000 Subject: [PATCH] Added hello world for Lua --- examples/hello.lp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 examples/hello.lp diff --git a/examples/hello.lp b/examples/hello.lp new file mode 100644 index 000000000..c4a71275f --- /dev/null +++ b/examples/hello.lp @@ -0,0 +1,4 @@ +<? mg.write('HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n') ?> +<html><body> + <span>Today is:</span> <? mg.write(os.date("%A")) ?> +</body></html> -- GitLab