comparison website/src/examples/hi2.luan @ 495:598123096772

rename service() to respond()
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 May 2015 18:10:14 -0600
parents 2b9bc97f0439
children 55f9f74f1e55
comparison
equal deleted inserted replaced
494:2b9bc97f0439 495:598123096772
26 </body> 26 </body>
27 </html> 27 </html>
28 <% 28 <%
29 end 29 end
30 30
31 function service() 31 function respond()
32 Io.stdout = Http.response.text_writer() 32 Io.stdout = Http.response.text_writer()
33 name = Http.request.parameters.name 33 name = Http.request.parameters.name
34 if name == nil then 34 if name == nil then
35 form() 35 form()
36 else 36 else