comparison website/src/manual.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 497d4ef0a89f
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 Reference Manual</title> 11 <title>Luan Reference Manual</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 17
17 <h1>Luan Reference Manual</h1> 18 <h1>Luan Reference Manual</h1>
18 19
19 <p> 20 <p>
20 <small> 21 <small>