mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 15:30:17 +00:00
16 lines
349 B
Python
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'] |