diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-29 14:16:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-29 14:16:24 +0000 |
commit | 2381d38cb1f7afdfb504870a03c259ba71983902 (patch) | |
tree | b998e19b38c7a368e46d95736173b0ee6a32e2fd /lualib | |
parent | 971d7f52efe58271e76f1f3a752395b687ebe1f0 (diff) | |
download | rspamd-2381d38cb1f7afdfb504870a03c259ba71983902.tar.gz rspamd-2381d38cb1f7afdfb504870a03c259ba71983902.zip |
[Minor] Use `{=` and `=}` for variables in Jinja templates
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index 7e0d7d878..a6a99f2b6 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -32,10 +32,10 @@ local nospace = 1 - space local ptrim = space^0 * lpeg.C((space^0 * nospace^1)^0) local match = lpeg.match -lupa.configure{ +lupa.configure('{%', '%}', '{=', '=}', '{#', '#}', { keep_trailing_newline = true, autoescape = false, -} +}) lupa.filters.pbkdf = function(s) local cr = require "rspamd_cryptobox" |