Mercurial Hosting > luan
comparison website/src/tutorial.html.luan @ 386:db23f654f87d
make all of website use luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 23 Apr 2015 18:09:12 -0600 |
parents | 4118eb51c816 |
children | 23d075ce1e48 |
comparison
equal
deleted
inserted
replaced
385:9850d788a20b | 386:db23f654f87d |
---|---|
1 local Io = require "luan:Io" | 1 local Io = require "luan:Io" |
2 local Html = require "luan:Html" | 2 local Html = require "luan:Html" |
3 local Http = require "luan:web/Http" | 3 local Http = require "luan:web/Http" |
4 | 4 |
5 | |
5 function service() | 6 function service() |
6 Io.stdout = Http.response.text_writer() | |
7 Io.stdout = Http.response.text_writer() | 7 Io.stdout = Http.response.text_writer() |
8 Html.simply_html_page{ | 8 Html.simply_html_page{ |
9 head = function() %> | 9 head = function() %> |
10 <title>Luan Tutorial</title> | 10 <title>Luan Tutorial</title> |
11 <% end; | 11 <% end; |