]> Devi Nivas Git - chevron.git/commitdiff
Pass `keep` to recursive calls of `chevron.renderer.render()`
authorDylan Brotherston <22044664+Dylan-Brotherston@users.noreply.github.com>
Sat, 20 Mar 2021 15:57:51 +0000 (02:57 +1100)
committerDylan Brotherston <22044664+Dylan-Brotherston@users.noreply.github.com>
Sat, 20 Mar 2021 15:57:51 +0000 (02:57 +1100)
chevron/renderer.py

index c0cff7bb6f100129913d61f5133e38591dfce1d3..9e38a2dbaa3af087826e8fb186452e21029d4fa6 100644 (file)
@@ -292,7 +292,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
                              padding=padding,
                              def_ldel=def_ldel, def_rdel=def_rdel,
                              scopes=data and [data]+scopes or scopes,
-                             warn=warn))
+                             warn=warn, keep=keep))
 
                 if python3:
                     output += rend
@@ -329,7 +329,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
                                   partials_ext=partials_ext,
                                   partials_dict=partials_dict,
                                   def_ldel=def_ldel, def_rdel=def_rdel,
-                                  warn=warn)
+                                  warn=warn, keep=keep)
 
                     if python3:
                         output += rend
@@ -364,7 +364,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
                               partials_dict=partials_dict,
                               def_ldel=def_ldel, def_rdel=def_rdel,
                               padding=part_padding, scopes=scopes,
-                              warn=warn)
+                              warn=warn, keep=keep)
 
             # If the partial was indented
             if left.isspace():