annotate website/src/index.html.luan @ 504:dbdf4b8193a8

add Http.per_session()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 May 2015 01:09:35 -0600
parents 92c3d22745b8
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: 370
diff changeset
1 local Io = require "luan:Io"
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 370
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"
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 370
diff changeset
4
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
5 local M = {}
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
7 function M.respond()
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 370
diff changeset
8 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: 386
diff changeset
9 %>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
10 <html>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
11 <head>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
12 <% 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: 386
diff changeset
13 <title>Luan</title>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
14 </head>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
15 <body>
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <div container>
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <h1>The Luan Programming Language</h1>
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 <big>
352
90c8406bf735 add website/push.sh
Franklin Schmidt <fschmidt@gmail.com>
parents: 351
diff changeset
19 <p margin-bottom="2em">under construction...</p>
90c8406bf735 add website/push.sh
Franklin Schmidt <fschmidt@gmail.com>
parents: 351
diff changeset
20 <p>Luan is a <a href="http://www.lua.org">Lua</a>-like language implemented in <a href="https://www.oracle.com/java/">Java</a>.</p>
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <p>
370
7999601586b1 minor documentation
Franklin Schmidt <fschmidt@gmail.com>
parents: 353
diff changeset
22 <a href="docs.html">Documentation</a><br>
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 370
diff changeset
23 <a href="https://www.dropbox.com/sh/i7imf67wzj7z3h2/AABrpM0L1apqHysb_ot5t2dla?dl=0">Download</a><br>
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 <a href="https://bitbucket.org/frschmidt/luan">Source</a><br>
353
38c19ecc384d start documentation
Franklin Schmidt <fschmidt@gmail.com>
parents: 352
diff changeset
25 <a href="http://luan.7479.n7.nabble.com/">Forum</a><br>
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 </p>
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 </big>
353
38c19ecc384d start documentation
Franklin Schmidt <fschmidt@gmail.com>
parents: 352
diff changeset
28 <p margin-top="2em"><small>This website was made with <a href="http://www.simplyhtml.org/">SimplyHTML</a>.</small></p>
351
427e7df4df17 start websites
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 </div>
391
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
30 <% 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: 386
diff changeset
31 </body>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
32 </html>
2f5cc9c2cbf0 replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents: 386
diff changeset
33 <%
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 370
diff changeset
34 end
503
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
35
92c3d22745b8 make _ENV optional
Franklin Schmidt <fschmidt@gmail.com>
parents: 495
diff changeset
36 return M