mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
13 lines
291 B
Python
13 lines
291 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'}] |