From: noah morrison Date: Tue, 11 Nov 2014 00:50:13 +0000 (-0500) Subject: Added current scope key (.) X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=9271f3d21e6c1b53a9441ab1801c897aa2c906b7;p=chevron.git Added current scope key (.) --- diff --git a/entei.py b/entei.py index 4947922..9eeb45e 100755 --- a/entei.py +++ b/entei.py @@ -187,6 +187,9 @@ def render(template, data, partials_path='.', partials_ext='mustache', return '' def get_key(key): + if key == '.': + return scopes[0] + for scope in scopes: try: for key in key.split('.'):