1HTTP/1.0 200 OK
2Content-Type: text/html
3
4<html><body>
5
6
7<p>This is a test page of mg.include in a Lua server page, served by the
8<a href="https://github.com/civetweb/civetweb/">CivetWeb web server</a>.
9</p><p>
10<?
11  script = string.gsub(mg.script_name, "page3.lp$", "page2.lp")
12  mg.write("Output of " .. script .. ":\n")
13?>
14</p><p>
15<?
16  mg.include(script)
17?>
18</p>
19
20</body></html>
21