]> Devi Nivas Git - chevron.git/commitdiff
Added current scope key (.)
authornoah morrison <noah@morrison.ph>
Tue, 11 Nov 2014 00:50:13 +0000 (19:50 -0500)
committernoah morrison <noah@morrison.ph>
Tue, 11 Nov 2014 02:13:00 +0000 (21:13 -0500)
entei.py

index 494792279c2ae89cb61119b5af810d8c5f488a31..9eeb45e0d6b4a27a850266399347d69ffab4b054 100755 (executable)
--- 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('.'):