Updated README.md to include lovebird.page

This commit is contained in:
rxi
2014-04-10 23:36:15 +01:00
parent 8ff1720a31
commit 44c11ac1dd

View File

@@ -31,8 +31,8 @@ The port which lovebird listens for connections on. By default this is `8000`
### lovebird.whitelist ### lovebird.whitelist
A table of hosts which lovebird will accept connections from. Any connection A table of hosts which lovebird will accept connections from. Any connection
made from a host which is not on the whitelist is logged and closed made from a host which is not on the whitelist is logged and closed
immediately. If `lovebird.whitelist` is set to nil, all connections are immediately. If `lovebird.whitelist` is set to nil then all connections are
accepted. The default is `{ "127.0.0.1", "localhost" }` accepted. The default is `{ "127.0.0.1", "localhost" }`.
### lovebird.wrapprint ### lovebird.wrapprint
Whether lovebird should wrap the `print()` function or not. If this is true Whether lovebird should wrap the `print()` function or not. If this is true
@@ -47,6 +47,10 @@ buffer. By default this is `200`.
The rate in seconds which the output buffer is refreshed on lovebird's page. The rate in seconds which the output buffer is refreshed on lovebird's page.
This is `0.5` by default. This is `0.5` by default.
### lovebird.page
The HTML page template which is used when lovebird is accessed by the browser.
The default is too long to list here, see [lovebird.lua](#).
### lovebird.print(...) ### lovebird.print(...)
Prints its arguments to lovebird's console. If `lovebird.wrapprint` is set to Prints its arguments to lovebird's console. If `lovebird.wrapprint` is set to
true this function is automatically called when print() is called. true this function is automatically called when print() is called.