-- Test fixture for the cgit Lua filter API, exercised by t0201-filters.sh.-- It echoes the filter_open arguments and upper-cases the body, which lets-- the test confirm arguments and content flow through the lua: filter path.functionfilter_open(...)
buffer = ""for i = 1, select("#", ...) do
buffer = buffer .. select(i, ...) .. " "endendfunctionfilter_close()
html(buffer)
return0endfunctionfilter_write(str)
buffer = buffer .. string.upper(str)
end