Mercurial Hosting > luan
comparison website/src/diff.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>How Luan differs from Lua</title> | 11 <title>How Luan differs from Lua</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>How Luan differs from Lua</h1> | 17 <h1>How Luan differs from Lua</h1> |
17 | 18 |
18 <p>This document explains how Luan differs from <a href="http://www.lua.org">Lua</a> as described in the <a href="http://www.lua.org/manual/5.3/">Lua 5.3 Reference Manual</a>.</p> | 19 <p>This document explains how Luan differs from <a href="http://www.lua.org">Lua</a> as described in the <a href="http://www.lua.org/manual/5.3/">Lua 5.3 Reference Manual</a>.</p> |
19 | 20 |
20 <hr/> | 21 <hr/> |