Mercurial Hosting > luan
annotate website/src/examples/hi.html.luan @ 2021:b8e5d53c4fc9
admin monitors scheduler
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Mon, 20 Oct 2025 14:45:27 -0600 | 
| parents | 28cd9b3abdb3 | 
| children | 
| rev | line source | 
|---|---|
| 693 
ca169567ce07
module URIs must now include ".luan"
 Franklin Schmidt <fschmidt@gmail.com> parents: 
505diff
changeset | 1 local Io = require "luan:Io.luan" | 
| 
ca169567ce07
module URIs must now include ".luan"
 Franklin Schmidt <fschmidt@gmail.com> parents: 
505diff
changeset | 2 local Http = require "luan:http/Http.luan" | 
| 382 | 3 | 
| 388 | 4 | 
| 505 
7bc63886d4f2
web page modules now return a function
 Franklin Schmidt <fschmidt@gmail.com> parents: 
503diff
changeset | 5 return function() | 
| 382 | 6 Io.stdout = Http.response.text_writer() | 
| 736 | 7 %> | 
| 1178 
49cf706c326a
serve_for_nginx on port 8081
 Franklin Schmidt <fschmidt@gmail.com> parents: 
736diff
changeset | 8 <!doctype html> | 
| 1931 | 9 <html lang="en"> | 
| 736 | 10 <body> | 
| 11 Hello World | |
| 12 </body> | |
| 13 </html> | |
| 14 <% | |
| 382 | 15 end | 
