Mercurial Hosting > luan
comparison website/src/tutorial.html.luan @ 387:23d075ce1e48
add website/src/Shared.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 23 Apr 2015 18:16:15 -0600 |
parents | db23f654f87d |
children | 2f5cc9c2cbf0 |
comparison
equal
deleted
inserted
replaced
386:db23f654f87d | 387:23d075ce1e48 |
---|---|
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 local Shared = require "site:/Shared" | |
4 | 5 |
5 | 6 |
6 function service() | 7 function service() |
7 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
8 Html.simply_html_page{ | 9 Html.simply_html_page{ |
10 <title>Luan Tutorial</title> | 11 <title>Luan Tutorial</title> |
11 <% end; | 12 <% end; |
12 body = function() %> | 13 body = function() %> |
13 | 14 |
14 <div container> | 15 <div container> |
15 <div><small><a href="/">Luan</a></small></div> | 16 <% Shared.header() %> |
16 <h1 margin-bottom="1em">Luan Tutorial</h1> | 17 <h1 margin-bottom="1em">Luan Tutorial</h1> |
17 | 18 |
18 | 19 |
19 <p>Create a file <b>hello.luan</b> containing:</p> | 20 <p>Create a file <b>hello.luan</b> containing:</p> |
20 | 21 |