From 55b46c8ce1806f21e6bfd469cc464b6630aaf072 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 15 Aug 2020 20:51:10 +0200 Subject: Updated manual page --- plop.1 | 15 ++++++++++----- 1 file 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. -- cgit v1.1