Mercurial Hosting > luan
comparison website/src/examples/hi2_simply_html.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 |
|---|---|
| 15 local function hello() %> | 15 local function hello() %> |
| 16 <p>Hi <%= name %>!</p> | 16 <p>Hi <%= name %>!</p> |
| 17 <% end | 17 <% end |
| 18 | 18 |
| 19 | 19 |
| 20 function service() | 20 function respond() |
| 21 Io.stdout = Http.response.text_writer() | 21 Io.stdout = Http.response.text_writer() |
| 22 name = Http.request.parameters.name | 22 name = Http.request.parameters.name |
| 23 %> | 23 %> |
| 24 <html> | 24 <html> |
| 25 <head> | 25 <head> |
