Mercurial Hosting > luan
annotate website/src/docs.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 | website/src/docs.html@8557581740db |
children | 23d075ce1e48 |
rev | line source |
---|---|
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
1 local Io = require "luan:Io" |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
2 local Html = require "luan:Html" |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
3 local Http = require "luan:web/Http" |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
4 |
370 | 5 |
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
6 function service() |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
7 Io.stdout = Http.response.text_writer() |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
8 Html.simply_html_page{ |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
9 head = function() %> |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
10 <title>Luan Documentation</title> |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
11 <% end; |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
12 body = function() %> |
370 | 13 <div container> |
14 <div><small><a href="/">Luan</a></small></div> | |
15 <h1 margin-bottom="1em">Luan Documentation</h1> | |
16 | |
17 <big> | |
18 <p> | |
382 | 19 <a href="tutorial.html">Tutorial</a><br> |
20 <a href="pil.html">Programming in Lua (book)</a><br> | |
371
e01cddba3433
add manual.html as copy of Lua 5.3 Reference Manual
Franklin Schmidt <fschmidt@gmail.com>
parents:
370
diff
changeset
|
21 <a href="manual.html">Reference Manual</a><br> |
370 | 22 <a href="diff.html">How Luan differs from Lua</a><br> |
23 </p> | |
24 </big> | |
25 | |
26 </div> | |
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
27 <% end; |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
28 } |
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
382
diff
changeset
|
29 end |