Mercurial Hosting > luan
comparison website/src/index.html.luan @ 391:2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 24 Apr 2015 14:05:52 -0600 |
parents | db23f654f87d |
children | 2b9bc97f0439 |
comparison
equal
deleted
inserted
replaced
390:bfbbce690bba | 391:2f5cc9c2cbf0 |
---|---|
3 local Http = require "luan:web/Http" | 3 local Http = require "luan:web/Http" |
4 | 4 |
5 | 5 |
6 function service() | 6 function service() |
7 Io.stdout = Http.response.text_writer() | 7 Io.stdout = Http.response.text_writer() |
8 Html.simply_html_page{ | 8 %> |
9 head = function() %> | 9 <html> |
10 <title>Luan</title> | 10 <head> |
11 <% end; | 11 <% Html.simply_html_head() %> |
12 body = function() %> | 12 <title>Luan</title> |
13 </head> | |
14 <body> | |
13 <div container> | 15 <div container> |
14 <h1>The Luan Programming Language</h1> | 16 <h1>The Luan Programming Language</h1> |
15 <big> | 17 <big> |
16 <p margin-bottom="2em">under construction...</p> | 18 <p margin-bottom="2em">under construction...</p> |
17 <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> | 19 <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> |
22 <a href="http://luan.7479.n7.nabble.com/">Forum</a><br> | 24 <a href="http://luan.7479.n7.nabble.com/">Forum</a><br> |
23 </p> | 25 </p> |
24 </big> | 26 </big> |
25 <p margin-top="2em"><small>This website was made with <a href="http://www.simplyhtml.org/">SimplyHTML</a>.</small></p> | 27 <p margin-top="2em"><small>This website was made with <a href="http://www.simplyhtml.org/">SimplyHTML</a>.</small></p> |
26 </div> | 28 </div> |
27 <% end; | 29 <% Html.simply_html_body_bottom() %> |
28 } | 30 </body> |
31 </html> | |
32 <% | |
29 end | 33 end |