summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-15 20:51:10 +0200
committerAki <please@ignore.pl>2020-08-15 20:53:45 +0200
commit55b46c8ce1806f21e6bfd469cc464b6630aaf072 (patch)
tree6b13f55d1800bfe9a91827c356ea9cd428afce3a
parent6662178be0a10add225a3b9b8df82b4f2a1a74a4 (diff)
downloadplop-55b46c8ce1806f21e6bfd469cc464b6630aaf072.zip
plop-55b46c8ce1806f21e6bfd469cc464b6630aaf072.tar.gz
plop-55b46c8ce1806f21e6bfd469cc464b6630aaf072.tar.bz2
Updated manual page
-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.