page3.lp 380 B

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