Files
cpp-project-template/third_party/prometheus/3rdparty/civetweb/test/ajax/echo.lp

9 lines
254 B
Plaintext
Raw Normal View History

2025-08-22 18:22:57 +08:00
<?
-- This *.lp file simply runs the *.lua file in the same directory.
n = string.match(mg.request_info.uri, "^(.*)%.lp$")
if mg.system:find("Windows") then
n = string.gsub(n, [[/]], [[\]])
end
n = mg.document_root .. n .. ".lua"
dofile(n)
?>