コード例 #1
0
 def render_template(self,context,data):
     context.fillSlots('maincontent', Fragment())
     return context.tag
コード例 #2
0
 def render_row(context, data):
     context.fillSlots('english', data[0])
     context.fillSlots('french', data[1])
     return context.tag
コード例 #3
0
ファイル: test_disktemplate.py プロジェクト: calston/tums
 def render_slots(self, context, data):
     for name, value in data.items():
         context.fillSlots(name, value)
     return context.tag
コード例 #4
0
 def render_slots(self,context,data):
     for name,value in data.items():
         context.fillSlots(name, value)
     return context.tag
コード例 #5
0
ファイル: test_rend.py プロジェクト: schwabe/nevow
 def render_template(self, context, data):
     context.fillSlots('maincontent', Fragment())
     return context.tag
コード例 #6
0
ファイル: test_rend.py プロジェクト: schwabe/nevow
 def render_row(context, data):
     context.fillSlots('english', data[0])
     context.fillSlots('french', data[1])
     return context.tag