Mercurial Hosting > luan
annotate website/src/index.html.luan @ 2017:65f36a905e1e
revert and just change Compiled.VERSION
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Thu, 02 Oct 2025 14:15:48 -0600 | 
| parents | bd00b36380d9 | 
| children | 
| rev | line source | 
|---|---|
| 1651 | 1 local Luan = require "luan:Luan.luan" | 
| 2 local error = Luan.error | |
| 3 local Io = require "luan:Io.luan" | |
| 1938 | 4 local Site_translator = require "luan:ai/Site_translator.luan" | 
| 1929 | 5 local get_lang = Site_translator.get_lang or error() | 
| 6 local text_writer = Site_translator.text_writer or error() | |
| 1651 | 7 local Shared = require "site:/lib/Shared.luan" | 
| 8 local head = Shared.head or error() | |
| 9 local header = Shared.header or error() | |
| 10 | |
| 11 | |
| 12 return function() | |
| 1929 | 13 Io.stdout = text_writer() | 
| 1651 | 14 %> | 
| 1216 | 15 <!doctype html> | 
| 1929 | 16 <html lang="<%=get_lang()%>"> | 
| 391 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 17 <head> | 
| 1651 | 18 <% head() %> | 
| 391 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 19 <title>Luan</title> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 20 </head> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 21 <body> | 
| 1651 | 22 <% header() %> | 
| 23 <div content> | |
| 24 <h1>The Luan Programming Language</h1> | |
| 1323 
3860ed4b8552
simplify website css
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1310diff
changeset | 25 | 
| 1827 | 26 <p>Luan is a <a href="https://www.lua.org/">Lua</a>-like language implemented in <a href="https://www.oracle.com/java/technologies/downloads/#java8">Java</a>.</p> | 
| 1323 
3860ed4b8552
simplify website css
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1310diff
changeset | 27 | 
| 1654 | 28 <ul links> | 
| 29 <li><a href="why.html">Why Luan?</a></li> | |
| 30 <li><a href="docs.html">Documentation</a></li> | |
| 1671 | 31 <li><a href="https://hg.reactionary.software/repo/luan">Source</a></li> | 
| 1783 | 32 <li><a href="support.html">Support</a></li> | 
| 1654 | 33 <li><a href="goodjava.html">The goodjava Library</a></li> | 
| 34 </ul> | |
| 1579 | 35 | 
| 1651 | 36 <div footer> | 
| 1935 | 37 <span>Luan was optimized with <a href="https://www.yourkit.com/java/profiler/">YourKit Java Profiler <img src="https://www.yourkit.com/images/yklogo.png"></a>.</span> | 
| 38 <span><a href="/">English</a> - <a href="/es/">Spanish</a> - <a href="/ja/">Japanese</a></span> | |
| 1651 | 39 </div> | 
| 1579 | 40 </div> | 
| 391 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 41 </body> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
386diff
changeset | 42 </html> | 
| 1651 | 43 <% | 
| 44 end | 
