annotate website/src/examples/hi.html.luan @ 1511:fb5be0e8ca54

better time_out
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 May 2020 19:10:14 -0600
parents 4c2972f4d862
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
693
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 505
diff changeset
1 local Io = require "luan:Io.luan"
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 505
diff changeset
2 local Http = require "luan:http/Http.luan"
382
8557581740db added tutorial
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
388
12ee9a336b95 add more examples
Franklin Schmidt <fschmidt@gmail.com>
parents: 382
diff changeset
4
505
7bc63886d4f2 web page modules now return a function
Franklin Schmidt <fschmidt@gmail.com>
parents: 503
diff changeset
5 return function()
382
8557581740db added tutorial
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 Io.stdout = Http.response.text_writer()
736
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
7 %>
1178
49cf706c326a serve_for_nginx on port 8081
Franklin Schmidt <fschmidt@gmail.com>
parents: 736
diff changeset
8 <!doctype html>
736
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
9 <html>
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
10 <body>
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
11 Hello World
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
12 </body>
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
13 </html>
Franklin Schmidt <fschmidt@gmail.com>
parents: 693
diff changeset
14 <%
382
8557581740db added tutorial
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 end