changeset 1931:28cd9b3abdb3 default tip

add lang
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 02 May 2025 10:24:38 -0600
parents 2b5eccebddd9
children
files examples/blog/src/edit.html.luan examples/blog/src/index.html.luan examples/blog/src/new.html.luan examples/blog/src/private/tools/backup.html.luan src/goodjava/webserver/handlers/DirHandler.java src/luan/modules/http/tools/Java_threads.luan src/luan/modules/http/tools/Luan_threads.luan src/luan/modules/http/tools/Run.luan src/luan/modules/http/tools/Shell.luan src/luan/modules/lucene/Web_search.luan src/luan/modules/sql/Web_query.luan website/src/blasma.html.luan website/src/examples/hi.html.luan website/src/examples/hi2.html.luan website/src/examples/sse_pull.html website/src/examples/sse_push.html.luan website/src/examples/static.html website/src/examples/upload-and-email.html.luan website/src/fschmidt/stopwatch.html website/src/manual_old.html.luan
diffstat 20 files changed, 27 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/examples/blog/src/edit.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/examples/blog/src/edit.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -21,7 +21,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<style>
 			@import "/site.css";
--- a/examples/blog/src/index.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/examples/blog/src/index.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -15,7 +15,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<style>
 			@import "/site.css";
--- a/examples/blog/src/new.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/examples/blog/src/new.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -18,7 +18,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<style>
 			@import "/site.css";
--- a/examples/blog/src/private/tools/backup.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/examples/blog/src/private/tools/backup.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -13,7 +13,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		backed up to <a href="/private/local/backup.zip">/private/local/backup.zip</a>
 	</body>
--- a/src/goodjava/webserver/handlers/DirHandler.java	Fri May 02 14:20:56 2025 +0300
+++ b/src/goodjava/webserver/handlers/DirHandler.java	Fri May 02 10:24:38 2025 -0600
@@ -45,7 +45,7 @@
 				Response response = new Response();
 				response.headers.put( "Content-Type", "text/html; charset=utf-8" );
 				Writer writer = new OutputStreamWriter( new ResponseOutputStream(response) );
-				writer.write( "<!doctype html>\n<html>\n" );
+				writer.write( "<!doctype html>\n<html lang=\"en\">\n" );
 				writer.write( "\t<head>\n" );
 				writer.write( "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" );
 				writer.write( "\t\t<meta name=\"robots\" content=\"noindex,nofollow\">\n" );
--- a/src/luan/modules/http/tools/Java_threads.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/http/tools/Java_threads.luan	Fri May 02 10:24:38 2025 -0600
@@ -25,7 +25,7 @@
 	end
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Java Threads</h1>
 		<p><%=Http.request.headers["host"]%> - <%=Time.format(Time.now())%></p>
--- a/src/luan/modules/http/tools/Luan_threads.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/http/tools/Luan_threads.luan	Fri May 02 10:24:38 2025 -0600
@@ -28,7 +28,7 @@
 	end
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Luan Threads</h1>
 		<p><%=Http.request.headers["host"]%> - <%=Time.format(Time.now())%></p>
--- a/src/luan/modules/http/tools/Run.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/http/tools/Run.luan	Fri May 02 10:24:38 2025 -0600
@@ -32,7 +32,7 @@
 	Http.response.headers["Content-Type"] = "text/html; charset=utf-8"
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Run Luan Code</title>
 		<style>
--- a/src/luan/modules/http/tools/Shell.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/http/tools/Shell.luan	Fri May 02 10:24:38 2025 -0600
@@ -91,7 +91,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Luan Shell</title>
 		<script>
--- a/src/luan/modules/lucene/Web_search.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/lucene/Web_search.luan	Fri May 02 10:24:38 2025 -0600
@@ -58,7 +58,7 @@
 local function form()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Lucene</title>
 		<style>
@@ -116,7 +116,7 @@
 	local msg = e.get_message()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Lucene</title>
 		<style>
@@ -154,7 +154,7 @@
 	end
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Lucene</title>
 		<style>
@@ -214,7 +214,7 @@
 	doc = html_encode(doc)
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Lucene</title>
 		<style>
@@ -273,7 +273,7 @@
 	end )
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Lucene</title>
 		<style>
--- a/src/luan/modules/sql/Web_query.luan	Fri May 02 14:20:56 2025 +0300
+++ b/src/luan/modules/sql/Web_query.luan	Fri May 02 10:24:38 2025 -0600
@@ -36,7 +36,7 @@
 local function form()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>SQL</title>
 		<style>
@@ -65,7 +65,7 @@
 	local cols = query.column_names()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>SQL</title>
 		<style>
--- a/website/src/blasma.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/blasma.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -11,7 +11,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 <%		head() %>
 		<title>Blasma</title>
--- a/website/src/examples/hi.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/hi.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -6,7 +6,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		Hello World
 	</body>
--- a/website/src/examples/hi2.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/hi2.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -5,7 +5,7 @@
 local function form()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Hello</h1>
 		<form>
@@ -21,7 +21,7 @@
 local function hello(name)
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Hello</h1>
 		<p>Hi <%= name %>!</p>
--- a/website/src/examples/sse_pull.html	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/sse_pull.html	Fri May 02 10:24:38 2025 -0600
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<style>
 			body {
--- a/website/src/examples/sse_push.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/sse_push.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -12,7 +12,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>push server-sent events</h1>
 		<form method=post>
--- a/website/src/examples/static.html	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/static.html	Fri May 02 10:24:38 2025 -0600
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Static HTML</h1>
 		<p>This is a static HTML page.</p>
--- a/website/src/examples/upload-and-email.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/examples/upload-and-email.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -13,7 +13,7 @@
 local function form()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Upload and Email</h1>
 		<form method="post" enctype="multipart/form-data">
@@ -29,7 +29,7 @@
 local function sent()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<body>
 		<h1>Upload and Email</h1>
 		<p>file sent</p>
--- a/website/src/fschmidt/stopwatch.html	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/fschmidt/stopwatch.html	Fri May 02 10:24:38 2025 -0600
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 		<title>Stopwatch</title>
 		<meta name="viewport" content="width=device-width, initial-scale=1">
--- a/website/src/manual_old.html.luan	Fri May 02 14:20:56 2025 +0300
+++ b/website/src/manual_old.html.luan	Fri May 02 10:24:38 2025 -0600
@@ -11,7 +11,7 @@
 	Io.stdout = Http.response.text_writer()
 %>
 <!doctype html>
-<html>
+<html lang="en">
 	<head>
 <%		head() %>
 		<title>Luan Reference Manual</title>