commit 2381d38: [Minor] Use `{=` and `=}` for variables in Jinja templates

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Mar 29 14:21:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-29 14:16:24 +0000
URL: https://github.com/rspamd/rspamd/commit/2381d38cb1f7afdfb504870a03c259ba71983902 (HEAD -> master)

[Minor] Use `{=` and `=}` for variables in Jinja templates

---
 lualib/lua_util.lua | 4 ++--
 1 file 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"


More information about the Commits mailing list