summaryrefslogtreecommitdiff
path: root/examples/inverted.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/inverted.py')
-rw-r--r--examples/inverted.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/inverted.py b/examples/inverted.py
index 1895050..660b932 100644
--- a/examples/inverted.py
+++ b/examples/inverted.py
@@ -11,3 +11,12 @@ class Inverted(pystache.View):
def two(self):
return 'two'
+
+class InvertedLists(Inverted):
+ template_name = 'inverted'
+
+ def t(self):
+ return [0, 1, 2]
+
+ def f(self):
+ return []