mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
11 lines
203 B
Python
11 lines
203 B
Python
import pystache
|
|
|
|
class NestedContext(pystache.View):
|
|
template_path = 'examples'
|
|
|
|
def outer_thing(self):
|
|
return "two"
|
|
|
|
def foo(self):
|
|
return {'thing1': 'one', 'thing2': 'foo'}
|