Mercurial Hosting > luan
annotate website/src/examples/hi.luan @ 666:2f449ccf54d2
use lists to assemble source
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 07 Apr 2016 23:36:56 -0600 |
| parents | 7bc63886d4f2 |
| children | ca169567ce07 |
| 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 |
|
505
7bc63886d4f2
web page modules now return a function
Franklin Schmidt <fschmidt@gmail.com>
parents:
503
diff
changeset
|
5 return function() |
| 382 | 6 Io.stdout = Http.response.text_writer() |
| 7 %> | |
| 8 <html> | |
| 9 <body> | |
| 10 Hello World | |
| 11 </body> | |
| 12 </html> | |
| 13 <% | |
| 14 end |
