Files
pystache/examples/template_partial.py
2011-01-13 19:36:33 +00:00

16 lines
349 B
Python

import pystache
class TemplatePartial(pystache.View):
template_path = 'examples'
def title(self):
return "Welcome"
def title_bars(self):
return '-' * len(self.title())
def looping(self):
return [{'item': 'one'}, {'item': 'two'}, {'item': 'three'}]
def thing(self):
return self['prop']