From 24b7f302ee2060b6590fdc0ed1be2b0a45e55d6f Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Tue, 2 Oct 2018 11:44:45 +0200 Subject: [PATCH] Fix the rendering of lambdas Variables are the most common tag types, yet they were not handled during the generation of template text for lambda scopes. --- chevron/renderer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chevron/renderer.py b/chevron/renderer.py index 3944f99..cf70f4d 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -251,7 +251,8 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', 'end': '/', 'partial': '>', 'set delimiter': '=', - 'no escape': '&' + 'no escape': '&', + 'variable': '' }[tag_type], tag_key, def_rdel) g_token_cache[text] = tags -- 2.47.3