Mercurial Hosting > reactionary
comparison src/beanshell.html.luan @ 91:76baf48ea36b default tip
add translation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 May 2025 17:17:52 -0600 |
parents | 416bdc22a478 |
children |
comparison
equal
deleted
inserted
replaced
90:0dced626778b | 91:76baf48ea36b |
---|---|
1 local Luan = require "luan:Luan.luan" | 1 local Luan = require "luan:Luan.luan" |
2 local error = Luan.error | 2 local error = Luan.error |
3 local pairs = Luan.pairs or error() | 3 local pairs = Luan.pairs or error() |
4 local Io = require "luan:Io.luan" | 4 local Io = require "luan:Io.luan" |
5 local Http = require "luan:http/Http.luan" | 5 local Site_translator = require "luan:gpt/Site_translator.luan" |
6 local get_lang = Site_translator.get_lang or error() | |
7 local text_writer = Site_translator.text_writer or error() | |
6 local Shared = require "site:/lib/Shared.luan" | 8 local Shared = require "site:/lib/Shared.luan" |
7 local head = Shared.head or error() | 9 local head = Shared.head or error() |
8 local header = Shared.header or error() | 10 local header = Shared.header or error() |
9 | 11 |
10 | 12 |
556 info.content() | 558 info.content() |
557 end | 559 end |
558 end | 560 end |
559 | 561 |
560 return function() | 562 return function() |
561 Io.stdout = Http.response.text_writer() | 563 Io.stdout = text_writer() |
562 %> | 564 %> |
563 <!doctype html> | 565 <!doctype html> |
564 <html> | 566 <html lang="<%=get_lang()%>"> |
565 <head> | 567 <head> |
566 <% head() %> | 568 <% head() %> |
567 <title>Reactionary BeanShell Tutorial</title> | 569 <title>Reactionary BeanShell Tutorial</title> |
568 </head> | 570 </head> |
569 <body> | 571 <body> |