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
committerRory& <root@rory.gay>2026-02-06 14:09:56 +0100
commit7f218cfae810965a3b094270d6df3b92c22d3fe0 (patch)
treebd3a14f18c6103e6f69194d8820d272210ac4511 /cgitrc.5.txt
parentSilence owner-info error (diff)
downloadcgit-magenta-7f218cfae810965a3b094270d6df3b92c22d3fe0.tar.xz
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 24ed09f..1ac9882 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt
@@ -639,37 +639,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. @@ -703,9 +672,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