From: Vsevolod Stakhov Date: Fri, 29 Mar 2019 14:16:24 +0000 (+0000) Subject: [Minor] Use `{=` and `=}` for variables in Jinja templates X-Git-Tag: 1.9.1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2381d38cb1f7afdfb504870a03c259ba71983902;p=rspamd.git [Minor] Use `{=` and `=}` for variables in Jinja templates --- 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"