about summary refs log tree commit diff
path: root/cgitrc.5.txt
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 13:33:37 -0500
committerJune McEnroe <june@causal.agency>2022-02-13 18:24:04 -0500
commitd993e4be6731b1a806e2c7588334a3f485a5fd31 (patch)
tree3d6276d4a791560a48d9481c31b9e7eba9fcc2a6 /cgitrc.5.txt
parentMerge remote-tracking branch 'ch/git-2-35' (diff)
downloadcgit-pink-d993e4be6731b1a806e2c7588334a3f485a5fd31.tar.gz
cgit-pink-d993e4be6731b1a806e2c7588334a3f485a5fd31.zip
Remove Lua support
Lua support is unused and the dlsym fwrite/write hacks horrify me.
Clean it up.
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r--cgitrc.5.txt34
1 files changed, 0 insertions, 34 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 45db6c7..7dd644a 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -632,37 +632,6 @@ specification with the relevant string; available values are:
 'exec:'::
 	The default "one process per filter" mode.
 
-'lua:'::
-	Executes the script using a built-in Lua interpreter. The script is
-	loaded once per execution of cgit, and may be called multiple times
-	during cgit's lifetime, making it a good choice for repeated filters
-	such as the 'email filter'. It responds to three functions:
-
-	'filter_open(argument1, argument2, argument3, ...)'::
-		This is called upon activation of the filter for a particular
-		set of data.
-	'filter_write(buffer)'::
-		This is called whenever cgit writes data to the webpage.
-	'filter_close()'::
-		This is called when the current filtering operation is
-		completed. It must return an integer value. Usually 0
-		indicates success.
-
-	Additionally, cgit exposes to the Lua the following built-in functions:
-
-	'html(str)'::
-		Writes 'str' to the webpage.
-	'html_txt(str)'::
-		HTML escapes and writes 'str' to the webpage.
-	'html_attr(str)'::
-		HTML escapes for an attribute and writes "str' to the webpage.
-	'html_url_path(str)'::
-		URL escapes for a path and writes 'str' to the webpage.
-	'html_url_arg(str)'::
-		URL escapes for an argument and writes 'str' to the webpage.
-	'html_include(file)'::
-		Includes 'file' in webpage.
-
 
 Parameters are provided to filters as follows.
 
@@ -696,9 +665,6 @@ auth filter::
 	with a 302 redirect, and write to output one or more "Set-Cookie"
 	HTTP headers, each followed by a newline.
 
-	Please see `filters/simple-authentication.lua` for a clear example
-	script that may be modified.
-
 commit filter::
 	This filter is given no arguments. The commit message text that is to
 	be filtered is available on standard input and the filtered text is