1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-17 22:21:06 +03:00
Files
libhttp/test/ajax/echo.lp
2013-11-18 21:51:55 +01:00

6 lines
141 B
Plaintext

<?
n = string.match(mg.request_info.uri, "^(.*)%.lp$")
n = string.gsub(n, [[/]], [[\]])
n = mg.document_root .. n .. ".lua"
dofile(n)
?>