mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
Contexts still can't see outer scope. Add failing test.
This commit is contained in:
@@ -3,5 +3,8 @@ import pystache
|
||||
class NestedContext(pystache.View):
|
||||
template_path = 'examples'
|
||||
|
||||
def outer_thing(self):
|
||||
return "two"
|
||||
|
||||
def foo(self):
|
||||
return {'thing1': 'one', 'thing2': 'foo'}
|
||||
|
||||
Reference in New Issue
Block a user