comparison website/src/examples/hi2.luan @ 1152:21d157b153fe

change http parameters interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 19:25:12 -0700
parents ca169567ce07
children 49cf706c326a
comparison
equal deleted inserted replaced
1151:dbb3cb906482 1152:21d157b153fe
28 <% 28 <%
29 end 29 end
30 30
31 return function() 31 return function()
32 Io.stdout = Http.response.text_writer() 32 Io.stdout = Http.response.text_writer()
33 local name = Http.request.parameter.name 33 local name = Http.request.parameters.name
34 if name == nil then 34 if name == nil then
35 form() 35 form()
36 else 36 else
37 hello(name) 37 hello(name)
38 end 38 end