Mercurial Hosting > luan
comparison website/src/examples/hi2.luan @ 388:12ee9a336b95
add more examples
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 23 Apr 2015 18:54:35 -0600 |
| parents | 8557581740db |
| children | 2b9bc97f0439 |
comparison
equal
deleted
inserted
replaced
| 387:23d075ce1e48 | 388:12ee9a336b95 |
|---|---|
| 1 local Io = require "luan:Io" | 1 local Io = require "luan:Io" |
| 2 local Http = require "luan:web/Http" | 2 local Http = require "luan:web/Http" |
| 3 | |
| 3 | 4 |
| 4 local function form() | 5 local function form() |
| 5 %> | 6 %> |
| 6 <html> | 7 <html> |
| 7 <body> | 8 <body> |
| 8 <h1>Hello</h1> | 9 <h1>Hello</h1> |
| 9 <form> | 10 <form> |
| 10 What is you name? | 11 What is you name? |
| 11 <input name="name"> | 12 <input name="name"> |
| 12 <input type=submit> | 13 <input type=submit> |
| 13 </form> | 14 </form> |
| 14 </body> | 15 </body> |
| 15 </html> | 16 </html> |
| 16 <% | 17 <% |
| 17 end | 18 end |
