diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-02-21 22:54:08 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 22:54:08 +0600 |
commit | 23b730c272eaa94bd90d2f44c50b7025ff1c14c0 (patch) | |
tree | 50d1fca00eeddbb38a5902c075c609bd75fc7506 /lualib/lua_util.lua | |
parent | a8c0e34fc81c407990d2179bad10abfd2b38c97f (diff) | |
parent | 923a70bbce21b9087f2aab9e9289872bf5065de5 (diff) | |
download | rspamd-23b730c272eaa94bd90d2f44c50b7025ff1c14c0.tar.gz rspamd-23b730c272eaa94bd90d2f44c50b7025ff1c14c0.zip |
Merge pull request #4829 from rspamd/revert-4826-vstakhov-fix-history-key
Revert "[Fix] Fix history key, as we use `{=` and not `{{` in templates"
Diffstat (limited to 'lualib/lua_util.lua')
-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 07ab13c9c..6964b0f00 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -171,7 +171,7 @@ end -- @param {boolean} skip_global_env don't export Rspamd superglobals -- @return {string} string containing replaced values -- @example --- lua_util.jinja_template("HELLO {=FOO=} {=BAR=}!", {['FOO'] = 'LUA', ['BAR'] = 'WORLD'}) +-- lua_util.jinja_template("HELLO {{FOO}} {{BAR}}!", {['FOO'] = 'LUA', ['BAR'] = 'WORLD'}) -- "HELLO LUA WORLD!" --]] exports.jinja_template = function(text, env, skip_global_env) @@ -190,7 +190,7 @@ end -- @param {boolean} skip_global_env don't export Rspamd superglobals -- @return {string} string containing replaced values -- @example --- lua_util.jinja_template("HELLO {=FOO=} {=BAR=}!", {['FOO'] = 'LUA', ['BAR'] = 'WORLD'}) +-- lua_util.jinja_template("HELLO {{FOO}} {{BAR}}!", {['FOO'] = 'LUA', ['BAR'] = 'WORLD'}) -- "HELLO LUA WORLD!" --]] exports.jinja_template_file = function(filename, env, skip_global_env) |