diff website/src/why.html.luan @ 1929:31f006c64782

translation
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 May 2025 18:31:05 -0600
parents 4fafcd1849d6
children
line wrap: on
line diff
--- a/website/src/why.html.luan	Sun Apr 27 04:24:08 2025 -0600
+++ b/website/src/why.html.luan	Thu May 01 18:31:05 2025 -0600
@@ -1,17 +1,19 @@
 local Luan = require "luan:Luan.luan"
 local error = Luan.error
 local Io = require "luan:Io.luan"
-local Http = require "luan:http/Http.luan"
+local Site_translator = require "luan:gpt/Site_translator.luan"
+local get_lang = Site_translator.get_lang or error()
+local text_writer = Site_translator.text_writer or error()
 local Shared = require "site:/lib/Shared.luan"
 local head = Shared.head or error()
 local header = Shared.header or error()
 
 
 return function()
-	Io.stdout = Http.response.text_writer()
+	Io.stdout = text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="<%=get_lang()%>">
 	<head>
 <%		head() %>
 		<title>Why Luan?</title>
@@ -22,7 +24,7 @@
 
 		<h1>Why Luan?</h1>
 
-		<p>Luan is designed for simplicity and readability.  What makes its extreme simplicity possible is that it is a pure scripting language as Ousterhout envisioned in his paper <a href="scripting.pdf">Scripting: Higher Level Programming for the 21st Century</a> (1998).  Luan is tightly coupled with Java, with Luan for scripting (writing applications) and Java for writing libraries.  Compare this to a language like Python.  While Python is a nice language, it is optimal neither for scripting nor for writing libraries.  Python sits in the middle as a compromise.  Ousterhout's vision is to use the optimal tool for each task.  Luan is an uncompromising scripting language while Java is ideal for writing libraries.</p>
+		<p>Luan is designed for simplicity and readability.  What makes its extreme simplicity possible is that it is a pure scripting language as Ousterhout envisioned in his paper <a href="scripting.html">Scripting: Higher Level Programming for the 21st Century</a> (1998).  Luan is tightly coupled with Java, with Luan for scripting (writing applications) and Java for writing libraries.  Compare this to a language like Python.  While Python is a nice language, it is optimal neither for scripting nor for writing libraries.  Python sits in the middle as a compromise.  Ousterhout's vision is to use the optimal tool for each task.  Luan is an uncompromising scripting language while Java is ideal for writing libraries.</p>
 
 		<p>Luan rejects the complexity of modern software.  It is mature software that I have been using for years for web programming.  Whether Luan will appeal to you depends on who you are.  So I will address different groups of people.</p>