Mercurial Hosting > luan
annotate website/src/examples/hi.luan @ 501:f26485a3692c
add String.literal to quote regex
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 May 2015 23:23:01 -0600 |
parents | 598123096772 |
children | 92c3d22745b8 |
rev | line source |
---|---|
382 | 1 local Io = require "luan:Io" |
494
2b9bc97f0439
change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents:
388
diff
changeset
|
2 local Http = require "luan:http/Http" |
382 | 3 |
388 | 4 |
495
598123096772
rename service() to respond()
Franklin Schmidt <fschmidt@gmail.com>
parents:
494
diff
changeset
|
5 function respond() |
382 | 6 Io.stdout = Http.response.text_writer() |
7 %> | |
8 <html> | |
9 <body> | |
10 Hello World | |
11 </body> | |
12 </html> | |
13 <% | |
14 end |