]> Devi Nivas Git - chevron.git/commitdiff
Fix the rendering of lambdas
authorAkos Kiss <akiss@inf.u-szeged.hu>
Tue, 2 Oct 2018 09:44:45 +0000 (11:44 +0200)
committerAkos Kiss <akiss@inf.u-szeged.hu>
Wed, 3 Oct 2018 10:06:38 +0000 (12:06 +0200)
Variables are the most common tag types, yet they were not handled
during the generation of template text for lambda scopes.

chevron/renderer.py

index 3944f9971c9843916311d186f627d684bba765df..cf70f4d7f3a844e9de9d2fe20e5a43b3d9dc8177 100644 (file)
@@ -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