annotate website/src/docs.html.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 598123096772
children 7bc63886d4f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"
494
2b9bc97f0439 change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents: 391
diff changeset
3 local Http = require "luan:http/Http"
387
23d075ce1e48 add website/src/Shared.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
4 local Shared = require "site:/Shared"
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 382
diff changeset
5
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
6 local M = {}
370
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
8 function M.respond()
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 382
diff changeset
9 Io.stdout = Http.response.text_writer()
391
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
10 %>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
11 <html>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
12 <head>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
13 <% Html.simply_html_head() %>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
14 <title>Luan Documentation</title>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
15 </head>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
16 <body>
370
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <div container>
387
23d075ce1e48 add website/src/Shared.luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
18 <% Shared.header() %>
370
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <h1 margin-bottom="1em">Luan Documentation</h1>
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <big>
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <p>
382
8557581740db added tutorial
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
23 <a href="tutorial.html">Tutorial</a><br>
8557581740db added tutorial
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
24 <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
25 <a href="manual.html">Reference Manual</a><br>
370
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 <a href="diff.html">How Luan differs from Lua</a><br>
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 </p>
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 </big>
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 </div>
391
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
31 <% Html.simply_html_body_bottom() %>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
32 </body>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
33 </html>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 387
diff changeset
34 <%
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 382
diff changeset
35 end
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
36
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
37 return M