Mercurial Hosting > luan
annotate website/src/pil.html.luan @ 2024:fa8304b060d9
rename launching luan files
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Wed, 29 Oct 2025 21:12:53 -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() | |
| 1652 | 9 local docs_header = Shared.docs_header or error() | 
| 1651 | 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: 
387diff
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: 
387diff
changeset | 19 <title>Programming in Lua</title> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
387diff
changeset | 20 </head> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
387diff
changeset | 21 <body> | 
| 1652 | 22 <% docs_header() %> | 
| 1651 | 23 <div content> | 
| 24 <h1>Programming in Lua</h1> | |
| 25 | |
| 1827 | 26 <p>Even though <a href="https://www.lua.org/pil/">Programming in Lua</a> is about Lua, not Luan, it still serves as an excellent introduction to Luan since the languages are so close.</p> | 
| 1326 
29d6d7d79c41
website - use relative paths
 Franklin Schmidt <fschmidt@gmail.com> parents: 
1325diff
changeset | 27 </div> | 
| 391 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
387diff
changeset | 28 </body> | 
| 
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
 Franklin Schmidt <fschmidt@gmail.com> parents: 
387diff
changeset | 29 </html> | 
| 1651 | 30 <% | 
| 31 end | 
