From: Vsevolod Stakhov Date: Tue, 26 Aug 2014 14:36:28 +0000 (+0100) Subject: Add notes about 'require'. X-Git-Tag: 0.7.0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd075fa4c499352420e5127966eafb667df0fd4;p=thirdparty%2Frspamd.git Add notes about 'require'. --- diff --git a/doc/markdown/lua/index.md b/doc/markdown/lua/index.md index d995306b2d..2bb1545566 100644 --- a/doc/markdown/lua/index.md +++ b/doc/markdown/lua/index.md @@ -235,6 +235,8 @@ Maps hold dynamically loaded data like lists or ip trees. It is possible to use Here is a sample of using maps from lua API: ~~~lua +local rspamd_logger = require "rspamd_logger" + -- Add two maps in configuration section local hash_map = rspamd_config:add_hash_map('file:///path/to/file', 'sample map') local radix_tree = rspamd_config:add_radix_map('http://somehost.com/test.dat', 'sample ip map')