comparison website/src/examples/hi.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 598123096772
children 7bc63886d4f2
comparison
equal deleted inserted replaced
502:d3183a330ff5 503:92c3d22745b8
1 local Io = require "luan:Io" 1 local Io = require "luan:Io"
2 local Http = require "luan:http/Http" 2 local Http = require "luan:http/Http"
3 3
4 local M = {}
4 5
5 function respond() 6 function M.respond()
6 Io.stdout = Http.response.text_writer() 7 Io.stdout = Http.response.text_writer()
7 %> 8 %>
8 <html> 9 <html>
9 <body> 10 <body>
10 Hello World 11 Hello World
11 </body> 12 </body>
12 </html> 13 </html>
13 <% 14 <%
14 end 15 end
16
17 return M