summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--plop.115
1 files changed, 10 insertions, 5 deletions
diff --git a/plop.1 b/plop.1
index e369ffe..8d8eefd 100644
--- a/plop.1
+++ b/plop.1
@@ -1,12 +1,17 @@
-.TH plop 1 "2020-05-08"
+.TH plop 1 "2020-08-15"
.SH NAME
-plop \- small framework for Lua web applications
+plop \- Hackable small standalone engine for Lua web applications
.SH SYNOPSIS
.B plop
.IR port
.IR handler
.SH DESCRIPTION
.B plop
-starts a http/1.1 server listening on designated port and handling incoming request by calling a
-.B Handler(request)
-global function that should be defined in handler Lua file.
+loads
+.IR handler
+Lua script and starts a HTTP/1.1 server listening on a designated port. The script is loaded as if
+.B require
+was used with module name
+.B handler
+and the return value is set as global variable with the same name. Loaded script is expected to return a function which
+will be used to handle each request.