summaryrefslogtreecommitdiffhomepage
path: root/plop.1
blob: 8d8eefda2eea73e7fd754063e1c75d802f1b368a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.TH plop 1 "2020-08-15"
.SH NAME
plop \- Hackable small standalone engine for Lua web applications
.SH SYNOPSIS
.B plop
.IR port
.IR handler
.SH DESCRIPTION
.B plop
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.