blob: 651cbe54f78c3f414b1f334dff2be634deea40d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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']
|