Files
pystache/examples/nested_context.py
T

8 lines
154 B
Python

import pystache
class NestedContext(pystache.View):
template_path = 'examples'
def foo(self):
return {'thing1': 'one', 'thing2': 'foo'}