summaryrefslogtreecommitdiff
path: root/examples/nested_context.py
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-03-28 21:09:57 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-03-28 21:09:57 -0700
commita06fd4233d55ea317ea03b81c98b149e3d5b1364 (patch)
tree3318cc8cf91b475c69ee265a86d6fe172fbb940c /examples/nested_context.py
parent652b6ccc311fd5c5682e9889cec852a755f88819 (diff)
parentc189bb2e953e93501e09131eb9736d03010cb58c (diff)
downloadpystache-a06fd4233d55ea317ea03b81c98b149e3d5b1364.tar.gz
Merge branch 'hotfix-v0.4.1' into master (issue #97)v0.4.1
v0.4.1 should now be ready to push to PyPI.
Diffstat (limited to 'examples/nested_context.py')
-rw-r--r--examples/nested_context.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/nested_context.py b/examples/nested_context.py
index 59d816a..83565a1 100644
--- a/examples/nested_context.py
+++ b/examples/nested_context.py
@@ -11,9 +11,11 @@ class NestedContext(pystache.View):
def derp(self):
return [{'inner': 'car'}]
-
+
def herp(self):
return [{'outer': 'car'}]
-
+
def nested_context_in_view(self):
- return 'it works!' if self.get('outer') == self.get('inner') else '' \ No newline at end of file
+ if self.get('outer') == self.get('inner'):
+ return 'it works!'
+ return '' \ No newline at end of file