mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
filter: allow returning exit code from filter
Filters can now indicate a status back to cgit by means of the exit code for exec, or the return value from close for Lua. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ce56d89a26
commit
6ca734da8f
3 changed files with 12 additions and 6 deletions
|
@ -16,6 +16,7 @@ end
|
|||
|
||||
function filter_close()
|
||||
html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer)
|
||||
return 0
|
||||
end
|
||||
|
||||
function filter_write(str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue