From: noah morrison Date: Tue, 11 Nov 2014 01:01:30 +0000 (-0500) Subject: Fixed falsy scopes exiting prematurely X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=e748ee34f9236b2c9f537ce56d94a978110fa232;p=chevron.git Fixed falsy scopes exiting prematurely --- diff --git a/entei.py b/entei.py index 9eeb45e..210491c 100755 --- a/entei.py +++ b/entei.py @@ -232,7 +232,11 @@ def render(template, data, partials_path='.', partials_ext='mustache', scopes = scopes[1:] elif not current_scope and len(scopes) != 1: - pass + if tag == 'section': + scopes.insert(0, scope) + + elif tag == 'inverted section': + scopes.insert(0, not scope) elif tag == 'literal': output += key